| subset | R Documentation |
Operators acting on objects to extract parts.
## S4 method for signature 'CA,ANY,missing'
x[[i]]
## S4 method for signature 'PCA,ANY,missing'
x[[i]]
x |
An object from which to extract element(s) or in which to replace element(s). |
i |
A |
If i is "data", returns a list with the following elements:
dataA numeric matrix of raw data.
meanA numeric vector giving the variables means (PCA).
sdA numeric vector giving the variables standard deviations
(PCA).
If i is "rows", returns a list with the following elements:
coordA numeric matrix of rows/individuals coordinates.
cos2A numeric matrix of rows/individuals squared cosine.
massesA numeric vector giving the rows masses/individual
weights.
supA logical vector specifying whether a point is a
supplementary observation or not.
If i is "columns", returns a list with the following elements:
coordA numeric matrix of columns/variables coordinates.
corA numeric matrix of correlation between variables and
the dimensions (PCA).
cos2A numeric matrix of columns/variables squared cosine.
massesA numeric vector giving the columns masses/variable
weights.
supA logical vector specifying whether a point is a
supplementary observation or not.
If i is "eigenvalues", returns a numeric vector of eigenvalues.
A list.
N. Frerebeau
Other mutators:
dimnames()
## Load data
data("iris")
## Compute principal components analysis
X <- pca(iris, scale = TRUE, sup_row = 8:10, sup_col = 1, sup_quali = "Species")
## Get results for the individuals
X[["rows"]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.