dcomtois / summarytools

R Package to Quickly and Neatly Summarize Data
523 stars 78 forks source link

stby function does not keep the order of name #107

Closed Indigofera closed 4 years ago

Indigofera commented 4 years ago

I have variables that are longitudinal (day1, day4, day8, day11). When I used stby function to find descriptive statistics, the output looks like day1, day11, day4, day8.

How can I keep the same order as (day1, day4, day8, day11).

Thanks for helping.

dcomtois commented 4 years ago

Hello,

The easiest way would be to change the values day1, day2, day3... into day01, day02, day03...

Indigofera commented 4 years ago

Thanks!!