aggregate_over_races: Aggregate variables over all races/ethnicities

View source: R/census_wrangle_race.R

aggregate_over_racesR Documentation

Aggregate variables over all races/ethnicities

Description

Aggregate variables over all races/ethnicities

Usage

aggregate_over_races(.x, ..., .f = sum, .all_races_label = "All")

Arguments

.x

a tibble with variables by race but no all-race totals

...

<['dynamic dots'][rlang::dyn-dots]> The variables to aggregate.

.f

the function to aggregate with, defaults to sum.

.all_races_label

the level for all races. defaults to "All"

Value

a tibble with values aggregated over all races


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