[R] R matrix help
David L Carlson
dcarlson at tamu.edu
Thu Jun 14 16:59:17 CEST 2012
If the number of elements is 12, the dimensions could be 1x12, 12x1, 2x6,
6x2, 3x4, or 4x3. How did you decide on 3x4?
----------------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77843-4352
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of karthicklakshman
> Sent: Thursday, June 14, 2012 7:51 AM
> To: r-help at r-project.org
> Subject: [R] R matrix help
>
> Dear R experts,
>
> I am interested in getting the dimensions for the matrix dynamically,
> based
> on the the number of elements in a matrix for example. if the number is
> 12,
> I should get dim= 3X4, if it is 20, dim=5X4.
> please help me do this.
>
> Thank you
> Regards
> karthick
>
> --
> View this message in context: http://r.789695.n4.nabble.com/R-matrix-
> help-tp4633372.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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