impute_matrix | R Documentation |
Impute missing values in a matrix
impute_matrix(X, ...)
X |
A matrix with missing values in some entries. |
... |
Further arguments for |
This function is based on the softImpute
function in its eponymous package.
An imputed version of matrix X
X <- matrix(rnorm(20*100),20)
Xmis <- X
Xmis[sample(length(Xmis),length(Xmis)/10)] <- NA
anyNA(X)
anyNA(impute_matrix(Xmis))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.