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

From: Erik Iverson <iverson_at_biostat.wisc.edu>
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!
>



R-help_at_r-project.org 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 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive