[R] Binning a 2 column matrix by avarages of rows.

2011-12-17 Thread ali_protocol
Newbie here. Many apologies in advance for using the incorrect lingo. I'm new to statistics and VERY new to R. I have a nx2 matrix , I want to sort the values based on the average of 2 columns and put k lowest (or highest) values in bin1, second k high/low values in bin2, and so on (bins would

Re: [R] Binning a 2 column matrix by avarages of rows.

2011-12-17 Thread David Winsemius
On Dec 17, 2011, at 2:47 AM, ali_protocol wrote: Newbie here. Many apologies in advance for using the incorrect lingo. I'm new to statistics and VERY new to R. I have a nx2 matrix , I want to sort the values based on the average of 2 columns and put k lowest (or highest) values in bin1,