[R] Row and Col length of a matrix?
roger koenker
rkoenker at uiuc.edu
Tue Jun 17 23:08:36 CEST 2008
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.
More information about the R-help
mailing list