Re: [R] Row and Col length of a matrix?

From: Erik Iverson <>
Date: Tue, 17 Jun 2008 15:54:17 -0500

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!
> mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Tue 17 Jun 2008 - 21:41:26 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 17 Jun 2008 - 22:30:42 GMT.

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

list of date sections of archive