split_col_expr: Split-Column Expression

View source: R/utils.R

split_col_exprR Documentation

Split-Column Expression

Description

Renders the expression for column split in rtables depending on:

  • the expected or not arm comparison

  • the expected or not arm combination

Usage

split_col_expr(compare, combine, ref, arm_var)

Arguments

compare

(logical)
if TRUE the reference level is included.

combine

(logical)
if TRUE the group combination is included.

ref

(character)
the reference level (not used for combine = TRUE).

arm_var

(character)
the arm or grouping variable name.

Value

a call

Examples

split_col_expr(
  compare = TRUE,
  combine = FALSE,
  ref = "ARM A",
  arm_var = "ARMCD"
)


teal.modules.clinical documentation built on April 4, 2025, 12:35 a.m.