collapse4 | R Documentation |
Collapses Other, AIAN, Asian, NHPI, and Two+ into other, by prefix.
collapse4(.data, prefix)
.data |
tibble, data.frame, or sf tibble |
prefix |
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_'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.