Re: [R] Grouping data via an index

2008-01-28 Thread Peter Dalgaard
Tobin, Jared wrote: > Hello r-help, > > I have a lengthy vector of data (with values anywhere from 1-200), and > another index vector of 'groups' representing values 0-2, 3-5, 6-8, ... > of length 67. The index vector has the structure (1, 4, 7, ... , 196, > 199), where each value is the midpoint

[R] Grouping data via an index

2008-01-28 Thread Tobin, Jared
Hello r-help, I have a lengthy vector of data (with values anywhere from 1-200), and another index vector of 'groups' representing values 0-2, 3-5, 6-8, ... of length 67. The index vector has the structure (1, 4, 7, ... , 196, 199), where each value is the midpoint of each respective group. I'm