update_group {tfrmt} | R Documentation |
Remap group values in a tfrmt
Description
Remap group values in a tfrmt
Usage
update_group(tfrmt, ...)
Arguments
tfrmt |
a |
... |
Use new_name = old_name to rename selected variables |
Value
A tfrmt
with the group
variables updated in all places
tfrmt object with updated groups#'
Examples
tfrmt_spec <- tfrmt(
group = c(group1, group2),
body_plan = body_plan(
frmt_structure(
group_val = list(group2 = "value"),
label_val = ".default",
frmt("XXX")
),
frmt_structure(
group_val = list(group1 = "value", group2 = "value"),
label_val = ".default",
frmt("XXX")
)
))
tfrmt_spec %>%
update_group(New_Group = group1)
[Package tfrmt version 0.1.2 Index]