powered by
This function takes a snap obj as input and performs computation of linear dimentionality reduction method using irlba
runDimReduct(obj, pc.num, input.mat, method, center, scale, seed.use, maxit, ...)
A snap obj.
An integer number of dimetions to return [50].
A character value indicates what input matrix to use - could be c("nmat", "jmat", "bmat", "pmat") [nmat].
A character value indicates what linear dimentionality reduction method to use - could be c("svd", "pca.whiten", "pca") [svd].
A logical value indicating whether the variables should be centered to be zero [TRUE].
A logical value indicating whether the variables should be scaled to be standarized [FALSE].
A numeric integer value interpreted as an integer [10].
Maximum number of iterations [1000].
Arguments passed to irlba fuction.
# NOT RUN { data(demo.sp); demo.sp = runDimReduct(obj=demo.sp, pc.num=10, input.mat="jmat"); # }
Run the code above in your browser using DataLab