Skip to contents

Convenience wrapper that builds a gtsummary::tbl_summary for the overall dataset.

Usage

table_overall(d)

Arguments

d

data.frame Dataset containing variables to summarize.

Value

A gtsummary::tbl_summary object for the overall cohort.

Examples

df <- data.frame(age = rnorm(20, 50, 10), sex = sample(c("M","F"), 20, TRUE))
table_overall(df)
#> Setting theme "language: en"
#> Setting theme "Compact"
Characteristic Overall
N = 20
age
    Median (Q1, Q3) 46.5 (42.3, 50.3)
    Mean +/- SD 46.4 +/- 5.4
    Min, Max 35.7, 56.6
sex
    F 9 (45%)
    M 11 (55%)