f_keepRegion: Keep the relevant region columns (1 or 2 distinct).

Description Usage Arguments Value

Description

f_keepRegion is used in data4plot. If ReportRegionLevel == RegionSplitLevel, the 2 output region colums will have the same value. NA values and "PEA" are removed silently.

Usage

1
f_keepRegion(data, ReportRegionLevel, ReportRegionValue, RegionSplitLevel)

Arguments

data

A dataframe with columns RegionLevel0, 1, 2, 4.

ReportRegionLevel

A string, such as "RegionLevel0".

ReportRegionValue

A string, such as "EMEAR".

RegionSplitLevel

A string, such as "RegionLevel2".

Value

a dataframe with columns RegionReport, RegionSplit.


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