computePCA: Compute PCA

computePCAR Documentation

Compute PCA

Description

Computes principal components and stores the embedding in form of a data.frame.

Usage

computePCA(object, ...)

## S4 method for signature 'DimRed'
computePCA(object, n_dims = 2, verbose = TRUE, ...)

## S4 method for signature 'Analysis'
computePCA(object, n_dims, verbose = TRUE)

Arguments

object

Any object for whose class a method has been defined.

...

Additional arguments given to irlba::prcomp_irlba().

n_dims

Numeric value. Integer that indicates the number of principal components to compute. Must be lower than the number of numeric variables based on which principal components are computed.

verbose

Logical. If set to TRUE informative messages regarding the computational progress will be printed.

(Warning messages will always be printed.)


kueckelj/confuns documentation built on July 4, 2024, 4:53 p.m.