ds_inv_simpson {divseg} | R Documentation |
Compute Simpson Index
ds_inv_simpson(.data, .cols, .name)
inv_simpson(..., .data = dplyr::across(everything()))
.data |
|
.cols |
|
.name |
name for column with Simpson Index Leave missing to return a vector. |
... |
arguments to forward to ds_inv_simpson from inv_simpson |
a tibble or numeric vector if .name missing
data("de_county")
ds_inv_simpson(de_county, starts_with('pop_'))
ds_inv_simpson(de_county, starts_with('pop_'), 'blau')