dcomtois / summarytools

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

Retaining the order of varaibles #130

Closed peckqyang closed 4 years ago

peckqyang commented 4 years ago

Hi,

Thank you so much for developing such a great package!

I am trying to use your package to create a descriptive statistics table for academic purposes.

One issue I am running up into is that creating the descriptive table using desr() re-orders the original variables alphabetically. However, I would like it to retain the column ordering in the original table.

Am I missing some obvious way of retaining that order or is this functionality not available? If not, please consider adding it since it would be very helpful.

Thank you!

dcomtois commented 4 years ago

Thank you for your kind feedback.

Retaining order is possible is the upcoming version, which you can already install using either remotes:: or devtools::install_github("dcomtois/summarytools")

Best

peckqyang commented 4 years ago

Great thank you!