Re: [R] Computing the rank of a matrix.

From: Charilaos Skiadas <>
Date: Fri 06 Apr 2007 - 11:50:13 GMT

On Apr 6, 2007, at 7:39 AM, Josť Luis Aznarte M. wrote:

> Hi! Maybe this is a silly question, but I need the column rank
> ( of a matrix and R function
> 'rank()' only gives me the ordering of the elements of my matrix.
> How can I compute the column rank of a matrix? Is there not an R
> equivalent to Matlab's 'rank()'?
> I've been browsing for a time now and I can't find anything, so
> any
> help will be greatly appreciated. Best regards!
Surprisingly, google searching for "r matrix rank" actually returns a R link:

I suppose the point is that in R you usually need a bit more than just the rank, so instead you want an object that contains all that info and more. Like we have the various lm objects, so to speak. They do the hard work once, and then we can ask them more particular questions.


> -- --
> Jose Luis Aznarte M.
> Department of Computer Science and Artificial Intelligence
> Universidad de Granada Tel. +34 - 958 - 24 04 67
> GRANADA (Spain) Fax: +34 - 958 - 24 00 79

Haris Skiadas
Department of Mathematics and Computer Science Hanover College mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri Apr 06 21:54:16 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 06 Apr 2007 - 13:31:01 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.