[R] Row and Col length of a matrix?

Erik Iverson iverson at biostat.wisc.edu
Tue Jun 17 22:54:17 CEST 2008

See ?dim, ?nrow, ?ncol.

MeMooMeM wrote:
> Hi, 
> Is there a direct command to get the row and col length of a matrix? 
> My ugly solution is: length(mtx[,1]) and length(bcf[1,])
> Thanks!

More information about the R-help mailing list