Re: [R] Generating groupings of ordered observations

2008-06-21 Thread Charles C. Berry
On Sat, 21 Jun 2008, Gavin Simpson wrote: On Sat, 2008-06-21 at 17:56 -0400, Gabor Grothendieck wrote: On Sat, Jun 21, 2008 at 12:40 PM, Gavin Simpson <[EMAIL PROTECTED]> wrote: Dear List, I have a problem I'm finding it difficult to make headway with. Say I have 6 ordered observations, and

Re: [R] Generating groupings of ordered observations

2008-06-21 Thread Gavin Simpson
On Sat, 2008-06-21 at 17:56 -0400, Gabor Grothendieck wrote: > On Sat, Jun 21, 2008 at 12:40 PM, Gavin Simpson <[EMAIL PROTECTED]> wrote: > > Dear List, > > > > I have a problem I'm finding it difficult to make headway with. > > > > Say I have 6 ordered observations, and I want to find all combinat

Re: [R] Generating groupings of ordered observations

2008-06-21 Thread Gabor Grothendieck
I meant 0:31, not 0:15. On Sat, Jun 21, 2008 at 5:56 PM, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > On Sat, Jun 21, 2008 at 12:40 PM, Gavin Simpson <[EMAIL PROTECTED]> wrote: >> Dear List, >> >> I have a problem I'm finding it difficult to make headway with. >> >> Say I have 6 ordered observa

Re: [R] Generating groupings of ordered observations

2008-06-21 Thread Gabor Grothendieck
On Sat, Jun 21, 2008 at 12:40 PM, Gavin Simpson <[EMAIL PROTECTED]> wrote: > Dear List, > > I have a problem I'm finding it difficult to make headway with. > > Say I have 6 ordered observations, and I want to find all combinations > of splitting these 6 ordered observations in g groups, where g = 1

Re: [R] Generating groupings of ordered observations

2008-06-21 Thread Charles C. Berry
On Sat, 21 Jun 2008, Gavin Simpson wrote: Dear Chuck, That is, quite simply, superb! The members of this list never cease to amaze me, and your response is no exception. As an aside, does this type of problem come under a particular name or topic in mathematics? Yes. Combinatorics. See

Re: [R] Generating groupings of ordered observations

2008-06-21 Thread Gavin Simpson
Dear Chuck, That is, quite simply, superb! The members of this list never cease to amaze me, and your response is no exception. As an aside, does this type of problem come under a particular name or topic in mathematics? The ordering need not be exactly as I had it in my example --- that just re

Re: [R] Generating groupings of ordered observations

2008-06-21 Thread Charles C. Berry
On Sat, 21 Jun 2008, Gavin Simpson wrote: Dear List, I have a problem I'm finding it difficult to make headway with. Say I have 6 ordered observations, and I want to find all combinations of splitting these 6 ordered observations in g groups, where g = 1, ..., 6. Groups can only be formed by a

[R] Generating groupings of ordered observations

2008-06-21 Thread Gavin Simpson
Dear List, I have a problem I'm finding it difficult to make headway with. Say I have 6 ordered observations, and I want to find all combinations of splitting these 6 ordered observations in g groups, where g = 1, ..., 6. Groups can only be formed by adjacent observations, so observations 1 and 4