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

From: Mario A. Morales R. <mamoralesri_at_telecom.com.co>
Date: Sat 07 Apr 2007 - 13:31:31 GMT


I use

qr(X)$rank

Example:

X<-matrix(c(1,1,1,1,1,2,1,3,2,4,2,6),nrow=4) qr(X)$rank



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sat Apr 07 23:35:57 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 Sat 07 Apr 2007 - 14:31:02 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.