corpca performs a principal components analysis on a dataset, and returns an object x
which contains the loadings, the scores and the singular values of the K first principal components.
It handles missing values in a dataset and actually computes the eigen elements of the rather small n x n
covariance matrix. All these variables are accesible using
the dollar sign (example : stds <- x$neutral_sdev).
Usage
corpca(data, K)
Arguments
data
a data matrix or a data frame.
K
an integer specifying the number of principal components that are retained.