collapse_a_factor.Rd
Summarize all of the values of a category
collapse_a_factor(
.x,
group_to_collapse,
values_to_summarize,
collapsed_label,
.summary_f = sum,
...
)
a tibble
the name of the field whose categories will be collapsed
the name(s) of the fields with values to summarize
the name of the new, collapsed category
the summary function, defaults to `sum`
further arguments for `.summary_f`, e.g. `na.rm = TRUE`.
a new summary tibble