impute_matrix {OmicsPLS} | R Documentation |
Impute missing values in a matrix
Description
Impute missing values in a matrix
Usage
impute_matrix(X, ...)
Arguments
X |
A matrix with missing values in some entries. |
... |
Further arguments for |
Details
This function is based on the softImpute
function in its eponymous package.
Value
An imputed version of matrix X
Examples
X <- matrix(rnorm(20*100),20)
Xmis <- X
Xmis[sample(length(Xmis),length(Xmis)/10)] <- NA
anyNA(X)
anyNA(impute_matrix(Xmis))
[Package OmicsPLS version 2.0.2 Index]