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

From: roger koenker <rkoenker_at_uiuc.edu>
Date: Tue, 17 Jun 2008 16:08:36 -0500

Oh, and don't forget: NROW and NCOL

url:    www.econ.uiuc.edu/~roger            Roger Koenker
email    rkoenker_at_uiuc.edu            Department of Economics
vox:     217-333-4558                University of Illinois
fax:       217-244-6678                Champaign, IL 61820


On Jun 17, 2008, at 3:54 PM, Erik Iverson wrote:

> 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.



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:24:53 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