I was looking into the TidierData.jl api and I see familiar macro-verbs like @arrange
which is basically @sort
for all intents and purposes.
So the question is why did dplyr choose arrange
as the key word for sorting? It think it’s because of R’s limitation. The sort
is already available from R base and it might clash with that unless they define the sort.data.frame
function which they were reluctant to do.
But Julia has multiple dispatch and can easily handle these cases. And also @sort
can be a macro and doesn’t have to be a function.
What the thoughts to introducing @sort
alongside @arrange
so that people coming from dplyr will know what @arrange
does but there’s a key word that makes more sense in @sort
.
Other examples include (@mutate, @transform)