[R] R matrix help

Sarah Goslee sarah.goslee at gmail.com
Thu Jun 14 17:12:51 CEST 2012


Can you explain why n=12 should result in 3x4 instead of 2x6 or 6x2 or
4x3 or 1x12 ?

On Thu, Jun 14, 2012 at 8:51 AM, karthicklakshman
<karthick.lakshman at gmail.com> wrote:
> 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
>

-- 
Sarah Goslee
http://www.functionaldiversity.org



More information about the R-help mailing list