concstats_firm {concstats}R Documentation

Number of firms

Description

Number of firms

Usage

concstats_firm(x, na.rm = TRUE)

Arguments

x

A non-negative numeric vector.

na.rm

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 the vector contains NA values.

Value

A positive numeric integer.

Examples

# a vector of market shares
x <- c(0.4, 0.2, 0.25, 0.1, 0.05)
concstats_firm(x)

[Package concstats version 0.1.6 Index]