Releases: ddsjoberg/gtsummary
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)
gtsummary 1.2.1 (2019-08-20)
gtsummary 1.2.0 (2019-08-19)
-
Users can pass variable names in backticks (#212)
-
The
group =
argument intbl_summary()
has been moved toadd_p()
(#208) -
Users can now write custom functions to calculate p-values in
add_p()
(#194) -
In
tbl_summary()
theby =
argument accepts a bare variable name instead of the variable name passed as a string (#193) -
Added support for column, row, and cell percentages in
tbl_summary()
(#181) -
Users can now set default p-value formatting functions, regression coefficient formatting functions, default level for confidence intervals, and formatting functions in
tbl_survival()
(#120) -
The {gt} package is no longer a required dependency. If {gt} is not installed, tables will be printed with
knitr::kable()
. Theas_kable()
function was added to the package as well. (#180) -
The function
as_gt()
now hasinclude =
andexclude =
arguments -
Updated some function names to be the same as they were in the first version
bold_p() <- tab_style_bold_p()
bold_labels() <- tab_style_bold_labels()
bold_levels() <- tab_style_bold_levels()
italicize_labels() <- tab_style_italicize_labels()
italicize_levels() <- tab_style_italicize_levels()
gtsummary 1.1.1 (2019-07-08)
gtsummary 1.1.0 (2019-6-07)
-
Added {tidyselect} and {gtsummary} variable select functions (#146)
-
Added
tbl_stack()
function (#152) -
Bug fix for dichotomous yes/no variables in
tbl_summary
(#158) -
Changed
add_comparison()
andadd_global()
toadd_p()
andadd_global_p()
(#143) -
Added
sort_p()
function (#105) -
Allow unobserved values to serve as the level for dichotomous variables (#149)
-
Bug fix in
add_nevent()
when formula was passed toglm()
as a string (#148) -
Added returned
call_list
to some functions without it previously (#137) -
Corrected name of call list in returned
tbl_regression()
results (#128) -
tbl_survival()
: bug fix when upper bound of CI was not able to be estimated (#134) -
tbl_survival()
: thegroupname
column name has been changed tolabel_level
(#133)
gtsummary 1.0.0 (2019-05-05)
First release since major refactoring. The {gt} package is now used as the backend to create all tables. Some function names have been modified to be more in line with other {gt} function calls, and additional functions have been added. The API for some functions has also been updated. Review documentation and vignettes for details.
Updated Function Names
tbl_summary() <- fmt_table1()
tbl_regression() <- fmt_regression()
tbl_uvregression() <- fmt_uni_regression()
style_pvalue() <- fmt_pvalue()
style_percent <- fmt_percent()
style_ratio <- fmt_beta()
New Functions
tbl_survival() as_gt()
tbl_merge() style_sigfig()
add_nevent() gtsummary_logo()