Return PCA results with FactoMineR's style
Usage
facto_pca(
X,
ncp = 5,
scale.unit = TRUE,
ind_sup = NULL,
quanti_sup = NULL,
weighted_col = NULL
)
Arguments
- X
a data frame with n rows (individuals) and p columns (numeric variables)
- ncp
an integer, the number of components to keep (value set by default)
- scale.unit
a boolean, if TRUE (value set by default) then data are scaled to unit variance
- ind_sup
a vector indicating the indexes of the supplementary individuals
- quanti_sup
a vector indicating the indexes of the quantitative supplementary variables
- weighted_col
column weights
Examples
library(FactoMineR2)
res <- facto_pca(iris[, -5], ncp = 2, ind_sup = 1, quanti_sup = 1)