rename_ard_columns {cards} | R Documentation |
Rename ARD Columns
Description
This function combines a pair of group
/group_level
or variable
/variable_level
columns into a
single column. The group_level
or variable_level
column is renamed according to the value of
the group
or variable
column, respectively.
Usage
rename_ard_columns(x, columns = c(all_ard_groups(), all_ard_variables()))
Arguments
x |
( |
columns |
( |
Value
data frame
Examples
data <- data.frame(group1 = "A", group1_level = "B", variable = "C", variable_level = "D")
rename_ard_columns(data)
rename_ard_columns(data, columns = c("group1", "group1_level"))
[Package cards version 0.2.0 Index]