random_matrix.Rd
random_matrix
creates a matrix of randomly generated vectors.
random_matrix(dims = 50, rows = 25, df = FALSE)
dims | The number of dimensions (columns) of the random matrix. Defaults to |
---|---|
rows | The number of rows of the random matrix. Defaults to |
df | Specify whether the matrix is to be created as data frame object. Defaults to |
D. Schmitz
### using default settings matrix_a <- random_matrix() dim(matrix_a) #> [1] 25 50 ### as data frame object matrix_b <- random_matrix(df = TRUE) dim(matrix_b) #> [1] 25 50 ### more dimensions matrix_c <- random_matrix(dims = 100) dim(matrix_c) #> [1] 25 100 ### more rows matrix_d <- random_matrix(rows = 100) dim(matrix_d) #> [1] 100 50