f_topSupplies: Keep the topN supplies items and lump together the Others.

Description Usage Arguments Value

Description

f_topSupplies keeps the topN items on SuppliesSplit column. Used in data4plot.

Usage

1
f_topSupplies(data, topN = 10)

Arguments

data

A dataframe with columns rk, SuppliesSplit.

topN

An integer representing the number of items to display, the others will be grouped together.

Value

a dataframe with a column SuppliesSplit, an ordered factor.


FabienNicol/suppliesdash documentation built on May 6, 2019, 7:04 p.m.