| PCA | R Documentation | 
PCA performs a principal components analysis
PCA(data, nfactors = NULL, rotate = "none", digits = 2, ...)
| data | a data frame or correlation matrix. | 
| nfactors | nuber of factors to extract. | 
| rotate | factor rotation to perform. | 
| digits | number of digits to retain. | 
| ... | parameters passed to the  | 
The PCA function is a wrapper for the psych::principal function.
Component rotations include none, varimax,
and promax.
returns a list with 5 components:
| call | the call | 
| loadings | structure matrix | 
| variance | variance accounted for | 
| phi | component intercorrelations for oblique rotations | 
| scores | component scores if factors are extracted from a data frame | 
fit.pca <- PCA(Harman74.cor$cov, nfactors=4, rotate="varimax")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.