powered by
Create matrix of random values with dimensions copied from an existing matrix
runif_same_dims(mat, min = 0, max = 1)
matrix
lower limit of the distribution. Must be finite.
upper limit of the distribution. Must be finite.
a matrix
# NOT RUN { mat <- matrix(0, 3, 3) runif_same_dims(mat) # }
Run the code above in your browser using DataLab