gtsummary 1.2.2 (2019-11-10)
New Features
-
tbl_summary
objects may be stacked and merged withtbl_stack()
andtbl_merge()
(#230, #255) -
The
add_n()
function now reports additional statistics: total N, non-missing N, missing N, and their percentages. Themissing =
argument has been deprecated in favor of thestatistic =
argument. (#237) -
Users may now pass a list of formulas, named lists, or a combination of both (#251)
-
Users can add an option to their script to append any {gt} calls when a {gtsummary} object is printed:
gtsummary.as_gt.addl_cmds
-
Added
include =
andexclude =
arguments totbl_uvregression()
(#240) -
Added standard evaluation variants,
tbl_summary_()
andadd_p_()
(#223) -
Added
as_tibble()
function that converts any {gtsummary} table to a tibble (#245) -
New
show_single_row
argument intbl_regression()
andtbl_uvregression()
allows any binary variable to be printed on a single row. Previous argumentshow_yesno
is now deprecated. (#220)
Documentation
-
Added a gallery of tables possible by merging, stacking, and modifying {gtsummary} arguments (#258)
-
Added a vignette documenting each global option that can be set in {gtsummary} (#289)
-
Added {lifecycle} badges to mark deprecated and experimental functions (#225)
Other Updates
-
The
by =
column intbl_summary()
now has missing variables dropped rather than halting with error (#279) -
Bug fix in
vars()
selection where only first variable listed was being selected (#259) -
Bug fix where logical variable labels printed as
NA
intbl_regression()
(#248) -
tbl_merge()
now interpretstab_spanner =
text withgt::md()
(#253) -
No longer checking outcome variable name for consistency in
tbl_regression()
---only checking independent variable names (#287) -
Improved error messaging for
add_global_p()
(#243) -
Removed
gt::cols_merge()
function ahead of the {gt} package PR 355 that changes thecols_merge()
API (#222) -
Updated API for using custom functions to calculate p-values in
add_p()
. User now may reference a custom function by its name. (#226) -
Removed legacy support for tidyr version less than 1.0.0 (#235)