powered by
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 = "__" )
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.
pluck
A list of data frames or tibbles to be collapsed.
Additional arguments passed to dplyr::filter().
dplyr::filter()
The name of the column to be created for the category.
A label for the category column. If NULL, defaults to "Category".
NULL
A character vector of column names to pluck from the data frames. If NULL, all columns are retained.
If TRUE, the frequency values will be converted to proportions. Default is FALSE.
TRUE
FALSE
A string to separate the names of the columns in the output data frame. Default is "_".
A string to separate the labels of the columns in the output data frame. Default is "__".
person_record |> generate_frequency( seeing, hearing, walking, remembering, self_caring, communicating ) |> collapse_list()
Run the code above in your browser using DataLab