runif_same_dims {matricks} | R Documentation |
Create matrix of random values with dimensions copied from an existing matrix
Description
Create matrix of random values with dimensions copied from an existing matrix
Usage
runif_same_dims(mat, min = 0, max = 1)
Arguments
mat |
matrix |
min |
lower limit of the distribution. Must be finite. |
max |
upper limit of the distribution. Must be finite. |
Value
a matrix
Examples
mat <- matrix(0, 3, 3)
runif_same_dims(mat)
[Package matricks version 0.8.2 Index]