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) 50.6 (43.5, 60.1)
    Mean +/- SD 51.9 +/- 10.3
    Min, Max 36.7, 71.5
sex
    F 9 (45%)
    M 11 (55%)