Created
October 5, 2018 05:24
-
-
Save srishtis/0991a0f4ebdc2dedc2bfb3b6064ec20c to your computer and use it in GitHub Desktop.
This snippet performs the PCA on correlation matrix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# scale=TRUE performs the PCA using the correlation matrix | |
cars.PC.cor = prcomp(mtcars[,-11], scale=TRUE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment