thanks john.
say, I would find a comprehensive "Julia dictionary for R users" extremely
helpful. your https://github.com/johnmyleswhite/JuliaVsR seems just the
perfect place for this. would you accept PRs that add for example

R       julia
cut    DataArrays.cut

to the readme.md?
I realize you set this up for Base Julia and probably with performance
comparisons in mind. Also there may be situations where several
packages/functions do the same thing. But it's hard for the user to find
find simple things like that I think. let me know what you think.




On 29 August 2014 22:29, John Myles White <johnmyleswh...@gmail.com> wrote:

> DataArrays has a cut function.
>
>  -- John
>
> On Aug 29, 2014, at 11:17 AM, Florian Oswald <florian.osw...@gmail.com>
> 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]
>
>
>

Reply via email to