View source: R/generate_helpers.R
| collapse_list | R Documentation |
Collapse a list of data frames or tibbles into a single data frame
collapse_list(
data,
...,
col_id = "category",
label = NULL,
pluck = NULL,
as_proportion = FALSE,
name_separator = "_",
label_separator = "__"
)
data |
A list of data frames or tibbles to be collapsed. |
... |
Additional arguments passed to |
col_id |
The name of the column to be created for the category. |
label |
A label for the category column. If |
pluck |
A character vector of column names to pluck from the data frames. If |
as_proportion |
If |
name_separator |
A string to separate the names of the columns in the output data frame. Default is "_". |
label_separator |
A string to separate the labels of the columns in the output data frame. Default is "__". |
A data frame with the specified category column and the frequency and percent columns for each category, along with any additional columns specified in pluck.
person_record |>
generate_frequency(
seeing,
hearing,
walking,
remembering,
self_caring,
communicating
) |>
collapse_list()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.