[R] Principal comp. scores in R

David Orlovich david.orlovich at botany.otago.ac.nz
Thu Jan 30 04:58:02 CET 2003


try:

 > pcX$scores

and

 > pcX$loadings

cheers,

David Orlovich.

On Thursday, January 30, 2003, at 04:48 PM, kenneth fortino wrote:

>
> Hello,  I am trying to run a PCA in R and I cannot get the PC scores 
> for each of the values.  Using pcX <- princomp(X) then loadings(pcX) I 
> can get a listing of the eigenvectors but not the actual PC scores for 
> each value in the dataset.  I greatly appreciate any help anyone can 
> offer
>
> Thanks
> Ken
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
Dr David Orlovich
Department of Botany,
The University of Otago,
P.O. Box 56,
Dunedin,
New Zealand.

Phone +64 3 479 9060
Fax +64 3 479 7583
david.orlovich at botany.otago.ac.nz
david.orlovich at unix.net
http://www.botany.otago.ac.nz/




More information about the R-help mailing list