Combine multiple groups of columns into a single group of columns with group labels.
Arguments
- column_groups
(list) A named list of columns to group together into a single group of columns. There should be the same number of columns in each group.
- group_labels
(list) A named list of columns and the label to use for all records in that column.
- ...
Additional slots and values passed to
struct_class
.
Value
A pivot_columns
object with the following
output
slots:
updated | (annotation_source) The updated annotations as an
annotation_source object. |
Inheritance
A pivot_columns
object inherits the following struct
classes:
[pivot_columns]
-> [model]
-> [struct_class]
References
Wickham H, François R, Henry L, Müller K, Vaughan D (2023). dplyr: A Grammar of Data Manipulation. R package version 1.1.4, https://CRAN.R-project.org/package=dplyr.