PCA: Performs basic principal component analysis on the given data...

Description Usage Arguments Value Examples

View source: R/PCA.R

Description

Performs basic principal component analysis on the given data matrix

Usage

1
PCA(data.mat)

Arguments

data.mat

The matrix of data to perform PCA on

Value

A list which contains the following elements is returned: rotation: the matrix of weights for the original variables lambda: the matrix of lambda values

Examples

1
2
3
4
test.matrix <- as.matrix( iris[ 1:50, 1:4 ] )
PCA.fit <- PCA( test.matrix )
PCA.fit$rotation
PCA.fit$lambda

Benjamin-Couey/CS599.RPackageTwo documentation built on Dec. 31, 2020, 10:45 a.m.