collapse4_pop: Collapse Population Race Categories into 4 Categories

View source: R/collapse.R

collapse4_popR Documentation

Collapse Population Race Categories into 4 Categories

Description

Collapses Other, AIAN, Asian, NHPI, and Two+ into other.

Usage

collapse4_pop(.data, prefix = "pop_")

Arguments

.data

tibble, data.frame, or sf tibble

prefix

Default is pop_. The prefix for the race categories.

Value

.data with columns collapsed

Examples

data(mt_county)
mt_county <- mt_county %>% collapse4_pop()

censable documentation built on Nov. 20, 2022, 1:06 a.m.