[R] rank of matrix (was Help)

Prof Brian Ripley
Fri, 30 Apr 2004 09:37:36 -0000

On Thu, 29 Apr 2004, Jason Parcon wrote:

> To whom it may concern:

>  Is there a function that we can use to easily obtain the rank of a
> matrix in R?

Yes.  See ?qr.  Note that the `rank' is not really well-defined for a
numerical matrix due to imprecise representation, and it may well be
better to look at the SVD (?svd) and consider the sizes of the singular
values.

> PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html

PLEASE do!  In particular, use a sensible subject line.

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