pca: Principal Component Analysis

Description Usage Arguments Value Author(s) Examples

View source: R/Exploring.R

Description

Performs a principal component analysis based on Singular Value Decomposition, on the given data matrix and returns the result as an object of the S3 class pca

Usage

1
pca(X, autoscale = T, exclude = T)

Arguments

X

a n x p data frame of n observations and p variables.

autoscale

a logical value indicating whether the variables should be autoscaled

exclude

a logical value indicating whether the first two columns should be excluded from the computation. The default is TRUE, because usually the first two columns of the dataset processed represent respectively the sample names and the class labels associated with the samples

Value

an S3 object of class pca with the following components:

Author(s)

Piergiorgio Palla

Examples

1
2
data(cachexiaData)
pca_obj <- pca(cachexiaData, autoscale = TRUE, exclude = TRUE)

pjpalla/RFmarkerDetector documentation built on May 25, 2019, 8:19 a.m.