pca: Title

Description Usage Arguments Value Examples

View source: R/PCA.R

Description

Title

Usage

1
pca(X, standardize, threshold_var)

Arguments

X

a data matrix X

standardize

boolean declaring whether to standardize data

threshold_var

the desired percentage of variance that needs to be explained by the principal components

Value

An object of class "principal components" containing transformed data, principal components and relevant information

Examples

1
2
data(iris)
pca_iris <- pca(iris[,-5], FALSE, 0.95)

eenticott/PCA documentation built on Jan. 10, 2021, 4:40 p.m.