Guest User

Untitled

a guest
Nov 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. ##Load iris dataset as an example
  2. data("iris")
  3. iris$Species <- NULL ## Remove character variable
  4.  
  5. ##Use the dataset as an input to the function
  6. pca_cor <- princomp(iris, cor = TRUE)
Add Comment
Please, Sign In to add comment