Description Usage Arguments Value Examples
At random set a percentage the non-zero elements of columns of a matrix to zero. This can be used to create a zero structure for the component weights/loadings from which to simulate data.
1 | sparsify(comdis, sparsity)
|
comdis |
A data matrix of class |
sparsity |
The percentage of non-zero elements in the columns of |
A matrix with a percentage of the non-zero elements in comdis
set to zero
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.