View source: R/metrics-univariate.R
hhi | R Documentation |
Herfindahl-Hirschman Index
hhi(x)
x |
A vector to obtain the HHI. |
x <- sample(LETTERS[1:10], size = 1000, replace = TRUE, prob = log(1:10))
hhi(x)
plot(table(x), main = hhi_label(hhi(x)))
x <- sample(LETTERS[1:5], size = 1000, replace = TRUE, prob = exp(1:5))
hhi(x)
plot(table(x), main = hhi_label(hhi(x)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.