census_collapse_races: Consolidate racial categories from the Census's to Higher...

View source: R/census_collapse_races.R

census_collapse_racesR Documentation

Consolidate racial categories from the Census's to Higher Expectations'

Description

Consolidate racial categories from the Census's to Higher Expectations'

Usage

census_collapse_races(
  .x,
  .census_label_field = "Census Race",
  .value_field = "Population",
  .summary_f = sum
)

Arguments

.x

a tibble with information grouped by Census race categories.

.census_label_field

the name of the field with Census race in it. Defaults to "Census Race"

.value_field

the name of the field with numeric data. Defaults to "Population"

.summary_f

the function to consolidate values with. Defaults to 'sum'.

Value

a tibble with Higher Expectations' race groups instead of the Census's.


higherX4Racine/hiRx documentation built on Nov. 18, 2024, 10:20 a.m.