gvelasq / tidytab

Create tidyverse-friendly tables of frequencies
https://gvelasq.github.io/tidytab/
Other
19 stars 6 forks source link

Enhancement Request: Add sorting functionality to tab function #28

Open theshiniss opened 5 months ago

theshiniss commented 5 months ago

In the tab function, it would be beneficial to include a new argument (sort = TRUE) to display the table in descending order of frequency. This enhancement would be similar to the count() function in tidyverse, where the sort argument defaults to FALSE. This addition would improve usability and provide users with more flexibility when working with tabulated data.

gvelasq commented 5 months ago

Hello @theshiniss, thank you for your interest in tidytab and for the feature request. I agree that a sort argument to tab() would be useful.

Would you be able to submit a pull request that implements this feature?