Learn R Programming

autoslider.core (version 0.2.5)

t_ds_slide: Discontinue table

Description

Discontinue table

Usage

t_ds_slide(adsl, arm = "TRT01P", split_by_study = FALSE, side_by_side = NULL)

Arguments

adsl

ADSL data

arm

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

split_by_study

Split by study, building structured header for tables

side_by_side

"GlobalAsia" or "GlobalAsiaChina" to define the side by side requirement

Examples

Run this code
library(dplyr)
adsl <- eg_adsl %>%
  mutate(DISTRTFL = sample(c("Y", "N"), size = nrow(eg_adsl), replace = TRUE, prob = c(.1, .9))) %>%
  preprocess_t_ds()
out1 <- t_ds_slide(adsl, "TRT01P")
print(out1)
generate_slides(out1, paste0(tempdir(), "/ds.pptx"))

out2 <- t_ds_slide(adsl, "TRT01P", split_by_study = TRUE)
print(out2)

Run the code above in your browser using DataLab