powered by
Collapses Other, AIAN, Asian, NHPI, and Two+ into other, by prefix.
collapse4(.data, prefix)
.data with columns collapsed
tibble, data.frame, or sf tibble
The prefix(es) for the race categories. Must be a character vector.
data(mt_county) mt_county <- mt_county %>% collapse4(prefix = c('pop_', 'vap_'))
Run the code above in your browser using DataLab