Question

14. Set the random seed to 12345. Create a vector of 60 samples from the exponential

distribution ("rexp") with rate equal to 1/(1,000,000). Create a matrix of these values

with 10 rows and 6 columns in such a way that the vector of the first 10 integers in the

sample equals the first column in the matrix, the vector of the second 10 integers in

the sample equals the second column in the matrix, and so on. Use the "apply" function

to find the median value in each row. (5 points)

Question image 1