[R] Computing the rank of a matrix.

Mario A. Morales R. mamoralesri at telecom.com.co
Sat Apr 7 15:31:31 CEST 2007


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



More information about the R-help mailing list