Numbers equivalent
Arguments
- x
A non-negative numeric vector.
- na.rm
A logical vector that indicates whether
NA
values should be excluded or not. Must be eitherTRUE
orFALSE
. The default isTRUE
. If set toFALSE
the computation yieldsNA
ifNA
values are present.
Examples
# a vector of market shares
x <- c(0.4, 0.2, 0.25, 0.1, 0.05)
concstats_nrs_eq(x)
#> [1] 3.636364