R/collapse.R
collapse5_pop.Rd
Collapses Other, AIAN, NHPI, and Two+ into other.
collapse5_pop(.data, prefix = "pop_")
tibble, data.frame, or sf tibble
Default is pop_. The prefix for the race categories.
pop_
.data with columns collapsed
data(mt_county) mt_county <- mt_county %>% collapse5_pop()