Description Usage Arguments Value
View source: R/aggregate_categories.R
Take mean, median, or sum of all variables by ethnoracial, income, and gentrification grouping.
1 | aggregate_categories(dat, compute = "mean", group_vars = c(NULL))
|
dat |
Data with a column containing census tracts ("tractid10") and categorical variables to group by or numeric variables to aggregate. |
compute |
"mean", "median", or "sum" |
group_vars |
Optional list of variables to group_by before aggregation. Note: All non-numeric variables should either be included here or de-selected. |
Aggregated data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.