Last chance! 50% off unlimited learning
Sale ends in
Functions for renaming group columns names in ARDs.
rename_ard_groups_shift(x, shift = -1)rename_ard_groups_reverse(x)
an ARD data frame of class 'card'
(data.frame
)
an ARD data frame of class 'card'.
(integer
)
an integer specifying how many values to shift the group IDs,
e.g. shift=-1
renames group2
to group1
.
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