Learn R Programming

rtemis (version 1.4.3)

setup_PCA: Setup PCA config.

Description

Setup PCA config.

Usage

setup_PCA(k = 3L, center = TRUE, scale = TRUE, tol = NULL, features = NULL)

Value

PCAConfig object.

Arguments

k

Integer [1, Inf): Number of components. (passed to prcomp rank.)

center

Logical: If TRUE, center the data.

scale

Logical: If TRUE, scale the data.

tol

Optional Numeric [0, Inf): Tolerance.

features

Optional Character vector: Names of at least 2 distinct feature columns to decompose. NULL decomposes all numeric features.

Author

EDG

Examples

Run this code
pca_config <- setup_PCA(k = 3L)
pca_config

Run the code above in your browser using DataLab