[R] Classifying values by interval

2011-08-31 Thread Ted Harding
Greetings All! As is often the case on this list, the answer may well be under my nose but I can't see it! I am looking for a smart way to do the following. Say I have a vector of values, X. I set up bins for X, say with breaks at B = c(b1,b2,...,b11) covering the range of X, i.e. bins numbered

Re: [R] Classifying values by interval

2011-08-31 Thread Dimitris Rizopoulos
Probably you're looking for function findInterval(). I hope it helps. Best, Dimitris On 8/31/2011 10:00 AM, Ted Harding wrote: Greetings All! As is often the case on this list, the answer may well be under my nose but I can't see it! I am looking for a smart way to do the following. Say

Re: [R] Classifying values by interval

2011-08-31 Thread Ted Harding
Thanks, Dimitris. That looks hopeful! Ted. On 31-Aug-11 08:06:23, Dimitris Rizopoulos wrote: Probably you're looking for function findInterval(). I hope it helps. Best, Dimitris On 8/31/2011 10:00 AM, Ted Harding wrote: Greetings All! As is often the case on this list, the answer may

Re: [R] Classifying values by interval

2011-08-31 Thread Jim Lemon
On 08/31/2011 06:00 PM, Ted Harding wrote: Greetings All! As is often the case on this list, the answer may well be under my nose but I can't see it! I am looking for a smart way to do the following. Say I have a vector of values, X. I set up bins for X, say with breaks at B = c(b1,b2,...,b11)

Re: [R] Classifying values by interval

2011-08-31 Thread Ted Harding
On 31-Aug-11 08:25:15, Jim Lemon wrote: On 08/31/2011 06:00 PM, Ted Harding wrote: Greetings All! As is often the case on this list, the answer may well be under my nose but I can't see it! I am looking for a smart way to do the following. Say I have a vector of values, X. I set up bins