50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


cards (version 0.5.1)

rename_ard_groups: Rename ARD Group Columns

Description

Functions for renaming group columns names in ARDs.

Usage

rename_ard_groups_shift(x, shift = -1)

rename_ard_groups_reverse(x)

Value

an ARD data frame of class 'card'

Arguments

x

(data.frame)
an ARD data frame of class 'card'.

shift

(integer)
an integer specifying how many values to shift the group IDs, e.g. shift=-1 renames group2 to group1.

Examples

Run this code
ard <- ard_continuous(ADSL, by = c(SEX, ARM), variables = AGE)

# Example 1 ----------------------------------
rename_ard_groups_shift(ard, shift = -1)

# Example 2 ----------------------------------
rename_ard_groups_reverse(ard)

Run the code above in your browser using DataLab