Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Nov 6 20:05:55 CET 2008

?princomp refers you to prcomp for that case:

      'princomp' only handles so-called R-mode PCA, that is feature
      extraction of variables.  If a data matrix is supplied (possibly
      via a formula) it is required that there are at least as many
      units as variables.  For Q-mode PCA use 'prcomp'.

On Thu, 6 Nov 2008, Noela Sánchez wrote:

> I need perform PCA analyst with a matrix with more variables than units.
> The princomp command don't match with this matrix.
> Anybody knows a good command to do it?
> -- 
> Noela

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