List of PCA functions to use in R

This is not a comprehensive list. It is intended to be a gist of what is available.

Special attention should be given to the requirements of these functions as some are made to calculate using a correlation or covariance matrix.

Here is a list of packages you may need to install for the following section.

library(psych)
library(ade4)
library(FactorMineR)
library(GPArotation)
library(caret)

This chunk indicates the different locations of functions that can be used for PCA. It is important to note that for some of these functions, the PCA scores may not be given unless explicitly requested.

FactorMineR::PCA
stats::princomp
stats::prcomp
ade4::dudi.pca
psych::principal
stats::factanal
caret::preProcess(method=c("center", "scale", "pca"))

For a nice visualization example using biplots, follow this link: Computing and Visualizing PCA