[R] help with PCA

David Winsemius dwinsemius at comcast.net
Sat Mar 16 19:32:48 CET 2013


On Mar 16, 2013, at 8:49 AM, john d wrote:

> 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?

You can either read the help page or for worked examples do a search on markmail:

list:org.r-project.r-help prcomp project new data onto components


-- 
David Winsemius
Alameda, CA, USA



More information about the R-help mailing list