Description Usage Arguments Examples
Make transformation function to be used with a column-compressed sparse matrix
1 | mkSparseTrans(object)
|
object |
repeated sparse matrix object |
1 2 3 4 5 6 | set.seed(1)
X <- rStrucMatrix(3, 7, 2, 12)
(Xsparse <- as.matrix(X, sparse = TRUE))
Xtrans <- mkSparseTrans(X)
slot(Xsparse, "x") <- Xtrans(rnorm(2))
print(Xsparse)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.