runif_same_dims: Create matrix of random values with dimensions copied from an...

Description Usage Arguments Value Examples

View source: R/random-matrix.R

Description

Create matrix of random values with dimensions copied from an existing matrix

Usage

1
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

1
2
mat <- matrix(0, 3, 3)
runif_same_dims(mat)

krzjoa/matricks documentation built on March 5, 2020, 8:38 p.m.