Incomplete-class | R Documentation |
"Incomplete"
a sparse matrix inheriting from class dgCMatrix
with the NAs
represented as zeros
Objects can be created by calls of the form
new("Incomplete", ...)
or by calling the function Incomplete
Object of class "integer"
Object of class "integer"
Object of class "integer"
Object of class "list"
Object of class "numeric"
Object of class "list"
signature(x = "Incomplete")
: ...
signature(from = "matrix", to = "Incomplete")
: ...
signature(x = "Incomplete")
:...
Trevor Hastie and Rahul Mazumder
biScale
,softImpute
,Incomplete
,impute
,complete
showClass("Incomplete")
set.seed(101)
n=200
p=100
J=50
np=n*p
missfrac=0.3
x=matrix(rnorm(n*J),n,J)%*%matrix(rnorm(J*p),J,p)+matrix(rnorm(np),n,p)/5
ix=seq(np)
imiss=sample(ix,np*missfrac,replace=FALSE)
xna=x
xna[imiss]=NA
xnaC=as(xna,"Incomplete")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.