The codes below will help learn how to implement principal component analysis in R, by using two examples
Example 1: Human Development Index
click here for the R code
click here for the csv data file
Example 2: Heptathalon Data