Open Nolan-Steed opened 6 months ago
This is a follow-up after https://github.com/insightsengineering/teal.transform/issues/205 where we discovered that order of the output can be also orchestrated by manually editing cs$choices
, like
cs$choices[1:4] <- cs$choices[c(2, 4, 1, 3)]
Feature description
It would be nice if the selected variables in the
summarize_vars
argument would be displayed in the order that they are programmed. For example in this code below, I have selected c('SEX', 'COUNTRY', 'AGE','RACE') and I want the demographic table to be displayed in that order. But the order that is displayed is not in this order, it is displayed by the order of the variables in the choices argument, if that makes sense. Often studies want the ability to have a large choices selection and it doesn't make sense to order this list manually. So I want the demographic table to be in the order 'SEX', 'COUNTRY', 'AGE','RACE', but it is actually displayed in the order 'AGE', 'SEX', 'RACE', 'COUNTRY'.Code of Conduct
Contribution Guidelines
Security Policy