-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: Option to specify .labels and .formats from tern #1130
Comments
Thanks for the nice question! You can do what you want in two ways:
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
)
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? |
Not yet, but this something that we're thinking as well. This issue might be related with insightsengineering/teal#1384 |
@Melkiades sorry for the very late reply on this. I guess the solution you've provided would technically work, but I was looking for something a little more functional. Since there are options in tern, why not expose arguments in the module function as well? Perhaps with a new function argument like
and then passing these args into |
You can probably define different stats names (still referring to the same stats) and then change the formats. Still you need this info to be accessible from the GUI |
I guess I'm not so much concerned with having these options available in the UI, but just in the actual function itself when configuring the module? |
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: