f_summarise4RVP: Prepare data for RVP plots.

Description Usage Arguments Value

Description

f_summarise4RVP adds information at level (RegionSplit, fYear), and level (RegionSplit, SuppliesSplit, fYear), while keeping all the rows of the data frame. Requires to drop fYear before (f_keepDateYear).

Usage

1

Arguments

data

a dataframe with columns SuppliesSplit, RegionReport, Supplies, facetY, Rev, Liters, Rev_sm, Liters_sm, Date, fDate.

facetY

a string, such as "RegionSplit", "source". NULL is the plot isn't an RVP.

Value

a dataframe with columns SuppliesSplit, RegionReport, Supplies, facetY, KEY, VALUE, Date, fDate, label. KEY (Rev_sm, Liters_sm, price) a factor.


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