ds_shannon | R Documentation |
Compute Shannon Index
ds_shannon(.data, .cols, .name) shannon(..., .data = dplyr::across(everything()))
.data |
tibble |
.cols |
|
.name |
name for column with Shannon index. Leave missing to return a vector. |
... |
arguments to forward to ds_shannon from shannon |
a tibble or numeric vector if .name missing
data("de_county") ds_shannon(de_county, starts_with('pop_')) ds_shannon(de_county, starts_with('pop_'), 'shannon')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.