Package: gtsummary 2.0.2
![](https://github.com/cran/gtsummary/raw/HEAD/man/figures/logo.png)
gtsummary: Presentation-Ready Data Summary and Analytic Result Tables
Creates presentation-ready tables summarizing data sets, regression models, and more. The code to create the tables is concise and highly customizable. Data frames can be summarized with any function, e.g. mean(), median(), even user-written functions. Regression models are summarized and include the reference rows for categorical variables. Common regression models, such as logistic regression and Cox proportional hazards regression, are automatically identified and the tables are pre-filled with appropriate column headers.
Authors:
gtsummary_2.0.2.tar.gz
gtsummary_2.0.2.tar.gz(r-4.5-noble)gtsummary_2.0.2.tar.gz(r-4.4-noble)
gtsummary_2.0.2.tgz(r-4.4-emscripten)gtsummary_2.0.2.tgz(r-4.3-emscripten)
gtsummary.pdf |gtsummary.html✨
gtsummary/json (API)
NEWS
# Install 'gtsummary' in R: |
install.packages('gtsummary', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/ddsjoberg/gtsummary/issues
- trial - Results from a simulated study of two chemotherapy agents
Last updated 2 days agofrom:e38078f3fa. Checks:OK: 2. Indexed: no.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Sep 06 2024 |
R-4.5-linux | OK | Sep 06 2024 |
Exports:.create_gtsummary_object.escape_html.escape_latex.escape_latex2.table_styling_expr_to_row_number%>%add_ciadd_differenceadd_glance_source_noteadd_glance_tableadd_global_padd_nadd_neventadd_overalladd_padd_qadd_significance_starsadd_statadd_stat_labeladd_vifall_categoricalall_continuousall_continuous2all_contrastsall_dichotomousall_interactionall_interceptsall_ofall_stat_colsall_testsany_ofas_flex_tableas_gtas_hux_tableas_hux_xlsxas_kableas_kable_extraas_tibbleassign_summary_digitsassign_summary_typeassign_testsbold_labelsbold_levelsbold_pbrdg_continuousbrdg_summarybrdg_wide_summarycheck_gtsummary_themecombine_termscontainscontinuous_summaryends_witheverythingfilter_pgather_ardget_gtsummary_themeglance_fun_s3global_pvalue_funinline_textinline_text.tbl_summaryitalicize_labelsitalicize_levelslabel_style_numberlabel_style_percentlabel_style_pvaluelabel_style_ratiolabel_style_sigfiglast_colmatchesmodify_captionmodify_cols_mergemodify_column_alignmentmodify_column_hidemodify_column_indentmodify_column_mergemodify_column_unhidemodify_fmt_funmodify_footnotemodify_headermodify_spanning_headermodify_table_bodymodify_table_stylingmutatenum_rangeone_ofpier_summary_categoricalpier_summary_continuouspier_summary_continuous2pier_summary_dichotomouspier_summary_missing_rowpkgdown_print.gtsummarypool_and_tidy_miceproportion_summaryratio_summaryremove_row_typereset_gtsummary_themescope_headerscope_table_bodyselectseparate_p_footnotesset_gtsummary_themeshow_header_namessort_pstarts_withstyle_numberstyle_percentstyle_pvaluestyle_ratiostyle_sigfigtbl_ard_continuoustbl_ard_summarytbl_ard_wide_summarytbl_butchertbl_continuoustbl_crosstbl_custom_summarytbl_likerttbl_mergetbl_regressiontbl_splittbl_stacktbl_stratatbl_strata2tbl_summarytbl_survfittbl_svysummarytbl_uvregressiontbl_wide_summarytheme_gtsummary_compacttheme_gtsummary_continuous2theme_gtsummary_edatheme_gtsummary_journaltheme_gtsummary_languagetheme_gtsummary_mean_sdtheme_gtsummary_printertibble_as_clitidy_bootstraptidy_gamtidy_robusttidy_standardizetidy_wald_testvarswherewith_gtsummary_theme
Dependencies:base64encbigDbitopsbslibcachemcardsclicolorspacecommonmarkcpp11curldigestdplyrevaluatefansifarverfastmapfontawesomefsgenericsgluegthighrhtmltoolshtmlwidgetsjquerylibjsonlitejuicyjuiceknitrlabelinglifecyclemagrittrmarkdownmemoisemimemunsellpillarpkgconfigpurrrR6rappdirsRColorBrewerRcppreactablereactRrlangrmarkdownsassscalesstringistringrtibbletidyrtidyselecttinytexutf8V8vctrsviridisLitewithrxfunxml2yaml
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Add CI Column | add_ci add_ci.tbl_summary |
Add CI Column | add_ci.tbl_svysummary |
Add differences between groups | add_difference.tbl_summary |
Add differences between groups | add_difference.tbl_svysummary |
Add model statistics | add_glance add_glance_source_note add_glance_table |
Add the global p-values | add_global_p add_global_p.tbl_regression add_global_p.tbl_uvregression |
Add N to regression table | add_n.tbl_regression add_n.tbl_uvregression add_n_regression |
Add column with N | add_n.tbl_likert add_n.tbl_summary add_n.tbl_svysummary add_n_summary |
Add N | add_n.tbl_survfit |
Add event N | add_nevent add_nevent.tbl_regression add_nevent.tbl_uvregression add_nevent_regression |
Add event N | add_nevent.tbl_survfit |
Add overall column | add_overall add_overall.tbl_continuous add_overall.tbl_custom_summary add_overall.tbl_summary add_overall.tbl_svysummary |
ARD add overall column | add_overall.tbl_ard_summary add_overall_ard |
Add p-values | add_p.tbl_continuous |
Add p-value | add_p.tbl_cross |
Add p-values | add_p.tbl_summary |
Add p-value | add_p.tbl_survfit |
Add p-values | add_p.tbl_svysummary |
Add multiple comparison adjustment | add_q |
Add significance stars | add_significance_stars |
Add a custom statistic | add_stat |
Add statistic labels | add_stat_label add_stat_label.tbl_summary add_stat_label.tbl_svysummary |
Add Variance Inflation Factor | add_vif |
Convert gtsummary object to a flextable object | as_flex_table |
Convert gtsummary object to gt | as_gt |
Convert gtsummary object to a huxtable object | as_hux_table as_hux_xlsx |
Convert gtsummary object to a kable object | as_kable |
Convert gtsummary object to a kableExtra object | as_kable_extra |
Convert gtsummary object to a tibble | as.data.frame.gtsummary as_tibble.gtsummary |
Assign Default Digits | assign_summary_digits |
Assign Default Summary Type | assign_summary_type |
Assign Test | assign_tests assign_tests.tbl_continuous assign_tests.tbl_summary assign_tests.tbl_survfit assign_tests.tbl_svysummary |
Bold or Italicize | bold_italicize_labels_levels bold_labels bold_labels.gtsummary bold_labels.tbl_cross bold_levels bold_levels.gtsummary bold_levels.tbl_cross italicize_labels italicize_labels.gtsummary italicize_labels.tbl_cross italicize_levels italicize_levels.gtsummary italicize_levels.tbl_cross |
Bold significant p-values | bold_p |
Continuous Summary Table Bridges | brdg_continuous |
Summary table bridge | brdg_summary pier_summary_categorical pier_summary_continuous pier_summary_continuous2 pier_summary_dichotomous pier_summary_missing_row |
Wide summary table bridge | brdg_wide_summary |
Combine terms | combine_terms |
Custom tidiers | custom_tidiers pool_and_tidy_mice tidy_bootstrap tidy_gam tidy_robust tidy_standardize tidy_wald_test |
Extract ARDs | gather_ard |
Report statistics from summary tables inline | inline_text.gtsummary |
Report statistics from summary tables inline | inline_text.tbl_continuous |
Report statistics from cross table inline | inline_text.tbl_cross |
Report statistics from regression summary tables inline | inline_text.tbl_regression |
Report statistics from summary tables inline | inline_text.tbl_summary inline_text.tbl_svysummary |
Report statistics from survfit tables inline | inline_text.tbl_survfit |
Report statistics from regression summary tables inline | inline_text.tbl_uvregression |
Style Functions | label_style label_style_number label_style_percent label_style_pvalue label_style_ratio label_style_sigfig |
Modify column headers, footnotes, and spanning headers | modify modify_footnote modify_header modify_spanning_header show_header_names |
Modify table caption | modify_caption |
Modify column alignment | modify_column_alignment |
Modify hidden columns | modify_column_hide modify_column_unhide |
Modify column indentation | modify_column_indent |
Modify Column Merging | modify_column_merge |
Modify formatting functions | modify_fmt_fun |
Modify Table Body | modify_table_body |
Modify Table Styling | modify_table_styling |
Plot Regression Coefficients | plot plot.tbl_regression plot.tbl_uvregression |
Summarize a proportion | proportion_summary |
Summarize the ratio of two variables | ratio_summary |
Remove rows | remove_row_type |
Select helper functions | all_categorical all_continuous all_continuous2 all_contrasts all_dichotomous all_interaction all_intercepts all_stat_cols all_tests select_helpers |
Create footnotes for individual p-values | separate_p_footnotes |
Set gtsummary theme | check_gtsummary_theme get_gtsummary_theme reset_gtsummary_theme set_gtsummary_theme with_gtsummary_theme |
Sort/filter by p-values | filter_p sort_filter_p sort_p |
Style numbers | style_number |
Style percentages | style_percent |
Style p-values | style_pvalue |
Style ratios | style_ratio |
Style significant figure-like rounding | style_sigfig |
Summarize continuous variable | tbl_ard_continuous |
ARD summary table | tbl_ard_summary |
Wide ARD summary table | tbl_ard_wide_summary |
Butcher table | tbl_butcher |
Summarize continuous variable | tbl_continuous |
Cross table | tbl_cross |
Create a table of summary statistics using a custom summary function | tbl_custom_summary |
Likert Summary | tbl_likert |
Merge tables | tbl_merge |
Regression model summary | tbl_regression tbl_regression.default |
Split gtsummary table | print.tbl_split tbl_split tbl_split.gtsummary |
Stack tables | tbl_stack |
Stratified gtsummary tables | tbl_strata tbl_strata2 |
Summary table | tbl_summary |
Survival table | tbl_survfit tbl_survfit.data.frame tbl_survfit.list tbl_survfit.survfit |
Create a table of summary statistics from a survey object | tbl_svysummary |
Univariable regression model summary | tbl_uvregression tbl_uvregression.data.frame tbl_uvregression.survey.design |
Wide summary table | tbl_wide_summary |
Available gtsummary themes | theme_gtsummary theme_gtsummary_compact theme_gtsummary_continuous2 theme_gtsummary_eda theme_gtsummary_journal theme_gtsummary_language theme_gtsummary_mean_sd theme_gtsummary_printer |
Results from a simulated study of two chemotherapy agents | trial |