R/collapse.R
collapse5.Rd
Collapses Other, AIAN, NHPI, and Two+ into Other, by prefix.
collapse5(.data, prefix)
tibble, data.frame, or sf tibble
The prefix(es) for the race categories. Must be a character vector.
.data with columns collapsed
data(mt_county) mt_county <- mt_county %>% collapse5(prefix = c('pop_', 'vap_'))