ds_hhi | R Documentation |
This is equivalent to the Simpson Index.
ds_hhi(.data, .cols, .name) hhi(..., .data = dplyr::across(everything())) ds_simpson(.data, .cols, .name) simpson(..., .data = dplyr::across(everything()))
.data |
tibble |
.cols |
|
.name |
name for column with HHI. Leave missing to return a vector. |
... |
arguments to forward to ds_hhi from hhi |
a tibble or numeric vector if .name missing
data("de_county") ds_hhi(de_county, starts_with('pop_')) ds_hhi(de_county, starts_with('pop_'), 'blau')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.