-
Notifications
You must be signed in to change notification settings - Fork 130
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
Adding continuous tabulating function #953
Conversation
@ddsjoberg This feature is really useful. I'm looking forward to using it! An initial thought about the I was thinking it would be useful to accept a list of formulas and allow different continuous statistic types for different comparison variables. E.g.
However, using it this way is a llittle inconsistent with Conversely, you could acheive the same result this way:
But it's a bit more cumbersome and the footnote needs adjustment. Thoughts on this? Also, is there a way to use |
Thank you for the review @karissawhiting !! You make a very good point, and this is something I planned very poorly unfortunately. The Since |
Just a quick comment, but it is also possible to replicate cf. #976 (comment) ;-) |
FYI @larmarange @karissawhiting I am going to update this function to use Joseph's contribution |
Hey @karissawhiting @larmarange ! I updated the back-end to use this allows users to select different stats for variable variables and I also added a digits argument to control rounding of the continuous variable. |
That's great @ddsjoberg
|
I forgot there was a copy already in the package 😆 |
What changes are proposed in this pull request?
tbl_continuous()
to summarize a continuous variable by 1 or more categorial variables.tbl_strata(.stack_group_header=)
argument to include/exclude the headers when tables are combined withtbl_stack()
tbl_strata(.quiet=)
argument.If there is an GitHub issue associated with this pull request, please provide link.
Checklist for PR reviewer
tbl_summary()
, was the same change implemented fortbl_svysummary()
?_pkgdown.yml
pkgdown::build_site()
. Check the R console for errors, and review the rendered website.covr::report()
. Before you run, setSys.setenv(NOT_CRAN="true")
and begin in a fresh R session without any packages loaded.usethis::use_spell_check()
runs with no spelling errors in documentationWhen the branch is ready to be merged into master:
# gtsummary (development version)
". If there is an issue associated with the pull request, reference it in parantheses at the end update (seeNEWS.md
for examples).usethis::use_version(which = "dev")
codemetar::write_codemeta()
usethis::use_spell_check()
again