dot-shift_column_pair: Shift column pair

.shift_column_pairR Documentation

Shift column pair

Description

This function ingests an ARD object and coalesces/renames a given pair of columns (variable and levels)

Usage

.shift_column_pair(x, col_pair)

Arguments

x

(data.frame)
a data frame

col_pair

(character)
character vector containing the column names for variables (first element) and their corresponding levels (second element)

Value

a tibble

Examples

ard_categorical(ADSL, by = "ARM", variables = "AGEGR1") |>
  cards:::.shift_column_pair(col_pair = c("group1", "group1_level"))


cards documentation built on Oct. 4, 2024, 1:09 a.m.