| subset {dimensio} | R Documentation |
Extract Parts of an Object
Description
Operators acting on objects to extract parts.
Usage
## S4 method for signature 'CA,ANY,missing'
x[[i]]
## S4 method for signature 'PCA,ANY,missing'
x[[i]]
Arguments
x |
An object from which to extract element(s) or in which to replace element(s). |
i |
A |
Details
If i is "data", returns a list with the following elements:
dataA
numericmatrix of raw data.meanA
numericvector giving the variables means (PCA).sdA
numericvector giving the variables standard deviations (PCA).
If i is "rows", returns a list with the following elements:
coordA
numericmatrix of rows/individuals coordinates.cos2A
numericmatrix of rows/individuals squared cosine.massesA
numericvector giving the rows masses/individual weights.supA
logicalvector specifying whether a point is a supplementary observation or not.
If i is "columns", returns a list with the following elements:
coordA
numericmatrix of columns/variables coordinates.corA
numericmatrix of correlation between variables and the dimensions (PCA).cos2A
numericmatrix of columns/variables squared cosine.massesA
numericvector giving the columns masses/variable weights.supA
logicalvector specifying whether a point is a supplementary observation or not.
If i is "eigenvalues", returns a numeric vector of eigenvalues.
Value
A list.
Author(s)
N. Frerebeau
See Also
Other mutators:
dimnames(),
get_contributions(),
get_coordinates(),
get_data(),
get_distances(),
get_eigenvalues(),
loadings()
Examples
## Load data
data("iris")
## Compute principal components analysis
X <- pca(iris, scale = TRUE, sup_row = 8:10, sup_col = 1)
## Get results for the individuals
X[["rows"]]