[R] printing PCA scores

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Jan 24 14:14:46 CET 2005


On Mon, 24 Jan 2005, Jari Oksanen wrote:

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

What `non-matching parentheses'?  Try counting them: two ( and two )!

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


More information about the R-help mailing list