Learn R Programming

censable (version 0.0.5)

collapse5_vap: Collapse Voting Age Population Race Categories into 5 Categories

Description

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

Usage

collapse5_vap(.data, prefix = "vap_")

Value

.data with columns collapsed

Arguments

.data

tibble, data.frame, or sf tibble

prefix

Default is vap_. The prefix for the race categories.

Examples

Run this code
data(mt_county)
mt_county <- mt_county %>% collapse5_vap()

Run the code above in your browser using DataLab