R/getPC.R
getPC.RdgetPC() uses irlba's partial SVD. When ncomp is at least half of the
smaller dimension of X, where irlba can be inaccurate, or when the smaller
dimension is at most 100, it uses a full SVD of a dense copy of X
instead. On such small matrices irlba may not converge, and its result then
depends on its random start; the full SVD does not.
getPC(X, ncomp, center = TRUE, scale = FALSE, sparse = FALSE)A list containing
Score matrix for X.
Laoding matrix for X.
Standard deviations of the principal components.
Total variance of X after the requested centring and scaling.
Proportion of totVar explained by each component.
Cumulative sum of props.
Number of components.
Column means used for centring, or NULL.
Column standard deviations used for scaling, or NULL.