Learn R Programming

autoslider.core (version 0.2.5)

gt_t_dm_slide: Demographic table with gtsummary

Description

Demographic table with gtsummary

Usage

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

Value

gtsummary object

Arguments

adsl

ADSL data set, dataframe

arm

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

vars

Characters of variables

Examples

Run this code
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"))

Run the code above in your browser using DataLab