Description Usage Arguments Value Examples
This is simply an alternative to R's principal and prcomp functions.
1 2 3 4 5 6 |
x |
a matrix or data frame containing only numeric variables |
ncomp |
the number of components to retain. |
scale |
should the variables be scaled prior to analysis? Defaults to TRUE. |
method |
the svd algorithm to use, one of "dc" and "std" corresponding to the divide-and-conquer (the default here) and standard algorithm. |
rotate |
a rotation function from the GPArotation package. Defaults to none. |
an object of class PrincipalComp
1 | pca(x, 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.