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

______________________________________________
[email protected] 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.

Reply via email to