[R] help with PCA

john d dobzhanski at gmail.com
Sat Mar 16 16:49:58 CET 2013


Dear all,

If I do a PCA like this:

dat<-matrix(rnorm(30),ncol=3)
res<-prcomp(dat)

Now, imagine that I got new data that I want to project onto the
original PC axes. How do I do that?

Thanks!

John



More information about the R-help mailing list