gini | R Documentation |
Calculate Gini index
gini(x)
x |
a vector of numerical values |
a single numeric giving the Gini index
https://en.wikipedia.org/wiki/Gini_coefficient
gini(1:10) gini(rep(1,100)) gini(c(rep(0,100),1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.