R/collapse.R
collapse4.Rd
Collapses Other, AIAN, Asian, NHPI, and Two+ into other, by prefix.
collapse4(.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 %>% collapse4(prefix = c('pop_', 'vap_'))