basis<- {ccfindR} | R Documentation |
Access and modify basis matrices
basis(object) <- value
object |
Object of class |
value |
Basis matrix to be substituted |
Input object with updated basis matrices
set.seed(1) s <- scNMFSet(count=matrix(rpois(n=12,lambda=3),4,3)) s <- vb_factorize(s, ranks=3) basis(s)[[1]] <- apply(basis(s)[[1]],seq(1,2),round,digits=3) basis(s)