gini: Computes the gini coefficient for a given vector.

Description Usage Arguments Value

View source: R/gini.R

Description

Computes the gini coefficient for a given vector.

Usage

1
gini(x, normalize = FALSE)

Arguments

x

[numeric]
Numeric vector of quantities.

normalize

[logical(1)]
If TRUE, the Gini coefficient is normalized. Default is FALSE.

Value

[numeric(1)] Gini coefficient.


jakobbossek/locu documentation built on May 18, 2019, 10:10 a.m.