Learn R Programming

healthcareai (version 1.2.4)

pcaAnalysis: Perform principle component analysis

Description

performs PCA on numeric data frames

Usage

pcaAnalysis(df)

Arguments

df

A numeric data frame w/o NA's

Value

A list that contains the data frame of principle components and the proportion of variance explained by each PC.

References

http://healthcare.ai

See Also

healthcareai

Examples

Run this code
# NOT RUN {
data(iris)
head(iris)
df <- iris[,1:4]
res <- pcaAnalysis(df)
head(res[[1]])
# }

Run the code above in your browser using DataLab