[R] rank of matrix (was Help)

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Apr 30 11:37:36 CEST 2004


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




More information about the R-help mailing list