prcomp {matter} | R Documentation |
This method allows computation of a truncated principal components analysis of a matter_mat
matrix using the implicitly restarted Lanczos method irlba
.
## S4 method for signature 'matter_mat' prcomp(x, n = 3, retx = TRUE, center = TRUE, scale. = FALSE, ...)
x |
A |
n |
The number of principal componenets to return, must be less than |
retx |
A logical value indicating whether the rotated variables should be returned. |
center |
A logical value indicating whether the variables should be shifted to be zero-centered, or a centering vector of length equal to the number of columns of |
scale. |
A logical value indicating whether the variables should be scaled to have unit variance, or a scaling vector of length equal to the number of columns of |
... |
Additional options passed to |
An object of class ‘prcomp’. See ?prcomp
for details.
The 'tol' truncation argument found in the default prcomp
method is not supported. In place of the truncation tolerance in the original function, the argument n
explicitly gives the number of principal components to return. A warning is generated if the argument 'tol' is used.
Kylie A. Bemis
set.seed(1) x <- matter_mat(rnorm(1000), nrow=100, ncol=10) prcomp(x)