Question on binning data: If I have a paired list, e.g. {{1,y1},{2,y2},{5,y3},{7,y4}}, and I want to bin the list according to criteria in the "x" component of each list, e.g. for values <=2 I get a list {y1,y2}... and so forth.
Basically I have a list population vs data, and I want to bin according to population. But i don't want to count the data points (because i want to create a box whiskers plot).
I was thinking of using TakeWhile[], but is there a more efficient way?