Description Usage Arguments Value Author(s) References Examples
Random Sparse Matrix
1 2 |
nrow |
number of rows in matrix |
ncol |
number of cols in matrix |
nnz |
number of non-zero entries |
rfunc |
random function to use to generate the non-zero entries |
rand.x |
random number generator for 'x' slot |
... |
optionally further arguments passed to sparseMatrix() |
a sparseMatrix of dimension (nrow, ncol)
Martin Maechler, Zach Mayer
sparseMatrix
1 2 | M1 <- random_sparse_matrix(1000, 20, nnz = 200)
summary(M1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.