Learn R Programming

autoslider.core (version 0.2.5)

t_dor_slide: DOR table

Description

DOR table

Usage

t_dor_slide(adsl, adtte, arm = "TRT01P", refgroup = NULL)

Value

An `rtables` object

Arguments

adsl

ADSL dataset

adtte

ADTTE dataset

arm

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

refgroup

Reference group

Examples

Run this code
library(dplyr)
adsl <- eg_adsl %>%
  dplyr::mutate(TRT01P = factor(TRT01P, levels = c("A: Drug X", "B: Placebo", "C: Combination")))
adtte <- eg_adtte %>%
  dplyr::filter(PARAMCD == "OS") %>%
  dplyr::mutate(TRT01P = factor(TRT01P, levels = c("A: Drug X", "B: Placebo", "C: Combination")))
out <- t_dor_slide(adsl, adtte)
print(out)
generate_slides(out, paste0(tempdir(), "/dor.pptx"))

Run the code above in your browser using DataLab