bupaverse / bupaR

Core R package for business process analysis
http://www.bupar.net
Other
56 stars 6 forks source link

arrange() unexpected behavior #33

Closed Erinaceida closed 3 years ago

Erinaceida commented 3 years ago

when using arrange(X, decreasing= T), bupaR version of the function doesn't throw an error but still doesn't reverse the arrangement, or when two variables are selected for arranging, produces an odd, mixed arrangement that makes little sense.

fmannhardt commented 3 years ago

The arrange function is based on the original dply` function here: https://dplyr.tidyverse.org/reference/arrange.html

There is no decreasing parameter in dplyr (as opposite to the standard R order). You need to use desc as in the dplyr documentation to get a order by decreasing values.