summarize: Summarize results

Description Usage Arguments Details Value Note Author(s) See Also Examples

View source: R/AllGenerics.R

Description

Summarize results

Usage

1
2
3
4
5
6
summarize(x, ...)

## S3 method for class 'PCA'
summarize(x, select = c("individuals", "sup_individuals",
  "variables", "qualitative", "quantitative"), rows = 1:10, axes = 1:3,
  ...)

Arguments

x

An object of class PCA or CA.

...

Currently not used.

select

A character string specifying the data to be summarized. This must be one of "individuals", "supplementary", "variables", "variables", "qualitative" or "quantitative" (see details). Any unambiguous substring can be given.

rows

A numeric vector specifying the indices of row to be summarized.

axes

A numeric vector specifying the indices of the axes to be summarized.

Details

The following summary results can be obtained:

individuals (PCA), rows (CA)

Active rows/individuals.

rows_sup

Supplementary rows/individuals.

variables (PCA), columns (CA)

Active columns/variables.

columns_sup

Supplementary columns/variables.

qualitative

Categorical supplementary variables.

quantitative

Quantitative supplementary variables.

Value

A data frame.

Note

This is a simplified rewrite of summary.PCA and summary.CA.

Author(s)

N. Frerebeau

See Also

PCA, CA

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
library(FactoMineR)

# PCA
data(decathlon)
res_pca <- FactoMineR::PCA(decathlon, scale.unit = TRUE, quanti.sup = 11:12,
                           quali.sup = 13, graph = FALSE)
## Get results summary for the first 10 individuals along the first 3 factors
summarize(res_pca, "ind", rows = 1:10, axes = 1:3)
## Get results summary for variables
summarize(res_pca, "var")
## Get results summary for supplementary continuous variables
summarize(res_pca, "quanti")
## Get results summary for supplementary categories
summarize(res_pca, "quali")

nfrerebeau/FactoHelpeR documentation built on Nov. 5, 2019, 3:16 p.m.