update_group | R Documentation |
Remap group values in a tfrmt
update_group(tfrmt, ...)
tfrmt |
a |
... |
Use new_name = old_name to rename selected variables |
A tfrmt
with the group
variables updated in all places
tfrmt object with updated groups#'
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.