[R] printing PCA scores

Jari Oksanen jarioksa at sun3.oulu.fi
Mon Jan 24 10:17:47 CET 2005


On Sat, 2005-01-22 at 17:31 -0500, Jérôme Lemaître wrote:
> Hey folks,
> 
> I have an environmental dataset on which I conducted a PCA (prcomp) and I
> need the scores of this PCA for each site (=each row) to conduct further
> analyses.
> 
> Can you please help me with that?
> 
Did you try help(prcomp) ?

It says that prcomp (may) return an item called 'x':

x: if 'retx' is true the value of the rotated data (the centred
          (and scaled if requested) data multiplied by the 'rotation'
          matrix) is returned.

[non-matching parentheses in the original help file]

So this is what you asked for.

cheers, jari oksanen

-- 
Jari Oksanen <jarioksa at sun3.oulu.fi>




More information about the R-help mailing list