Description Usage Arguments Examples
View source: R/describe.R
Herfindahl-Hirschman Index
1
hhi(x)
x
A vector to obtain the HHI.
1 2 3 4 5 6 7
x <- sample(LETTERS[1:10], size = 1000, replace = TRUE, prob = sqrt(1:10)) hhi(x) plot(table(x)) x <- sample(LETTERS[1:5], size = 1000, replace = TRUE, prob = 1:5) hhi(x) plot(table(x))
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.