You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, there's no such option available in the TMC equivalent, tm_t_summary_by.
It would be nice if these could be specified across all table modules, and, even better, if a set of defaults could be specified that is applied to all tables, similar to tern:::summary_formats() and tern:::summary_labels().
Code of Conduct
I agree to follow this project's Code of Conduct.
Contribution Guidelines
I agree to follow this project's Contribution Guidelines.
Security Policy
I agree to follow this project's Security Policy.
The text was updated successfully, but these errors were encountered:
Thanks for the nice question! You can do what you want in two ways:
Add your personal formats and labels directly to analyze_vars in the template_summary_by, reinstall {teal.modules.clinical} and they will appear in your app. You can also check the stats bindings from the following
shiny::checkboxGroupInput(
ns("numeric_stats"),
label="Choose the statistics to display for numeric variables",
choices= c(
"n"="n",
"Mean (SD)"="mean_sd",
"Mean 95% CI"="mean_ci",
"Geometric Mean"="geom_mean",
"Median"="median",
"Median 95% CI"="median_ci",
"25% and 75%-ile"="quantiles",
"Min - Max"="range"
),
selected=a$numeric_stats
)
Keeping in mind the above binding labels (mean_sd etc) you can change the defaults on your local by overloading tern::tern_default_formats and/or tern::tern_default_labels (I would change only what you need so not to mess it up too much)
As a final note, I do not think that, for now, we have plans to make accessible from the UI to customize labels. Right @donyunardi?
Feature description
As an example, it is possible to customize the labels and formats in the tern table functions:
However, there's no such option available in the TMC equivalent,
tm_t_summary_by
.It would be nice if these could be specified across all table modules, and, even better, if a set of defaults could be specified that is applied to all tables, similar to
tern:::summary_formats()
andtern:::summary_labels()
.Code of Conduct
Contribution Guidelines
Security Policy
The text was updated successfully, but these errors were encountered: