Description Usage Arguments Value
Calculate segregation for macro geometries. Method definitions from the US Census.
1 2 3 | calculate_segregation(macro_geometry_sf, sub_geometry_sf, majority_pop,
minority_pop, method = c("dissimilarity_index", "gini", "entropy",
"interaction"))
|
macro_geometry_sf |
An 'sf' object. Contains simple features for macro-geometries (eg cities) |
sub_geometry_sf |
An 'sf' object. Contains simple features for sub-geometries (eg tracts or neighborhoods) and demographic data. |
majority_pop |
Character. The name of the column with the majority race/ ethnicity county. |
minority_pop |
Character. The name of the column with the minority race/ ethnicity county. |
method |
Character. The method to use to calculate gentrification. One of "dissimilarity_index", "gini", "entropy", or "interaction". Currently only one at a time is supported. |
'macro_geometry_sf' with one more column containing the segregation measure selected.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.