concstats_nrs_eq: Numbers equivalent

View source: R/numberseq.R

concstats_nrs_eqR Documentation

Numbers equivalent

Description

Numbers equivalent

Usage

concstats_nrs_eq(x, na.rm = TRUE, digits = NULL)

Arguments

x

A non-negative numeric vector.

na.rm

A logical vector that indicates whether NA values should be excluded or not. Must be either TRUE or FALSE. The default is TRUE. If set to FALSE the computation yields NA if NA values are present.

digits

An optional value for digits. Specifies the minimum number of significant digits to be printed in values. The default is NULL and will use base R print option.

Value

A positive numeric value, rounded to the second decimal place.

See Also

Other Market structure measures: concstats_all_mstruct(), concstats_firm(), concstats_mstruct(), concstats_top(), concstats_top3(), concstats_top3_df(), concstats_top5(), concstats_top5_df(), concstats_top_df()

Examples

# a vector of market shares
x <- c(0.4, 0.2, 0.25, 0.1, 0.05)
concstats_nrs_eq(x, digits = 2)


concstats documentation built on Oct. 12, 2026, 5:07 p.m.