Top 5 market shares data frame
Arguments
- x
A data frame or tibble.
- y
A non-negative vector of shares. All integers (e.g. sales) are converted to relative decimal numbers.
- 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. Significant digits defaults to 7. Values are restricted between 1 and default value.
See also
Other Market structure measures:
concstats_all_mstruct()
,
concstats_firm()
,
concstats_mstruct()
,
concstats_nrs_eq()
,
concstats_top()
,
concstats_top3()
,
concstats_top3_df()
,
concstats_top5()
,
concstats_top_df()
Examples
x <- data.frame(
firm = c("A", "B", "C", "D", "E"),
share = c(0.2,0.25,0.1,0.05,0.4)
)
concstats_top5_df(x, "share", digits = 2)
#> # A tibble: 5 × 2
#> firm share
#> <chr> <dbl>
#> 1 E 40
#> 2 B 25
#> 3 A 20
#> 4 C 10
#> 5 D 5