View source: R/random_matrix.R
random_matrix | R Documentation |
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) ### as data frame object matrix_b <- random_matrix(df = TRUE) dim(matrix_b) ### more dimensions matrix_c <- random_matrix(dims = 100) dim(matrix_c) ### more rows matrix_d <- random_matrix(rows = 100) dim(matrix_d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.