powered by
Compute Simpson Index
ds_inv_simpson(.data, .cols, .name)inv_simpson(..., .data = dplyr::across(everything()))
inv_simpson(..., .data = dplyr::across(everything()))
a tibble or numeric vector if .name missing
tibble
tidy-select Columns to compute the measure with.
tidy-select
name for column with Simpson Index Leave missing to return a vector.
arguments to forward to ds_inv_simpson from inv_simpson
data('de_county') ds_inv_simpson(de_county, starts_with('pop_')) ds_inv_simpson(de_county, starts_with('pop_'), 'blau')
Run the code above in your browser using DataLab