[R] defining an array with one of the elements being a vector

From: cassie jones <cassiejones26_at_gmail.com>
Date: Tue, 08 Mar 2011 16:23:59 -0600

Dear all,

I am trying to define an array as follows:


Even though the numbers N and G are fixed, m is a vector. So, I can't define 'a' as above.

 For eg,

but m=c(2,7,5) and length(m)=N.

Can anyone suggest me how can I define 'a' when m is a vector?

Thanks in advance for your help.


        [[alternative HTML version deleted]]

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 08 Mar 2011 - 22:32:00 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 08 Mar 2011 - 23:30:19 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