Learn R Programming

cards (version 0.5.1)

.shift_column_pair: 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)

Value

a tibble

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)

Examples

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

Run the code above in your browser using DataLab