gt_t_dm_slide: Demographic table with gtsummary

View source: R/gt_t_dm_slide.R

gt_t_dm_slideR Documentation

Demographic table with gtsummary

Description

Demographic table with gtsummary

Usage

gt_t_dm_slide(adsl, arm = "TRT01P", vars = c("AGE", "SEX", "RACE"))

Arguments

adsl

ADSL data set, dataframe

arm

Arm variable, character, "'TRT01P" by default.

vars

Characters of variables

Value

gtsummary object

Note

* Default arm variables are set to '"TRT01A"' for safety output, and '"TRT01P"' for efficacy output

Examples

library(dplyr)
adsl <- eg_adsl
out1 <- gt_t_dm_slide(adsl, "TRT01P", c("SEX", "AGE", "RACE", "ETHNIC", "COUNTRY"))
print(out1)
generate_slides(out1, paste0(tempdir(), "/dm.pptx"))


autoslider.core documentation built on Aug. 8, 2025, 6:44 p.m.