ds_rel_conc {divseg} | R Documentation |
Compute Relative Concentration
ds_rel_conc(.data, .cols, .name)
rel_conc(..., .data = dplyr::across(everything()))
.data |
tibble with sf geometry |
.cols |
|
.name |
name for column with relative concentration. Leave missing to return a vector. |
... |
arguments to forward to ds_rel_conc from rel_conc |
a tibble or numeric vector if .name missing
data('de_county')
ds_rel_conc(de_county, c(pop_black, starts_with('pop_')))
ds_rel_conc(de_county, c(pop_black, starts_with('pop_')), 'rel_conc')