collapse5_vap: Collapse Voting Age Population Race Categories into 5...

View source: R/collapse.R

collapse5_vapR Documentation

Collapse Voting Age Population Race Categories into 5 Categories

Description

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

Usage

collapse5_vap(.data, prefix = "vap_")

Arguments

.data

tibble, data.frame, or sf tibble

prefix

Default is vap_. The prefix for the race categories.

Value

.data with columns collapsed

Examples

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

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