DataArrays has a cut function. -- John
On Aug 29, 2014, at 11:17 AM, Florian Oswald <[email protected]> wrote: > hi > > what's the julia equivalent of this R call? i don't need the levels and > labels, just some kind of grouping index. > > > cut(sample(1:10,10,TRUE),c(0,3,6,10)) > > [1] (3,6] (6,10] (0,3] (6,10] (3,6] (6,10] (0,3] (0,3] (3,6] (3,6] > > Levels: (0,3] (3,6] (6,10] >
