Re: [R] Creating a ragged array

2011-02-11 Thread Gabor Grothendieck
On Fri, Feb 11, 2011 at 10:39 AM, Barth B. Riley wrote: > Dear list > > I am trying to figure out how to create a ragged array that consists of > groups of array elements (indices from the original array) of similar values. > I would like to create a ragged array that might look something like t

[R] Creating a ragged array

2011-02-11 Thread Barth B. Riley
Dear list I am trying to figure out how to create a ragged array that consists of groups of array elements (indices from the original array) of similar values. I would like to create a ragged array that might look something like this: S[1] 11, 19, 14,7 S[2] 29,4,1,13,44 S[3] 56,9,2,35 S[4] 3