merge_outcome: Merge 3 columns of outcome

Description Usage Arguments Details

View source: R/report_support.R

Description

This function can merge 3 column-like dataframes into 1 dataframe with 3 columns.

Usage

1
merge_outcome(now, previous = NULL, last = NULL, bywhat)

Arguments

now

The report month, like 2018/06.

previous

One year ago of report month, like 2017/06. Or caculated by function caculate_increaseratio.

last

One month ago of report month, like 2018/05. Or caculated by function caculate_increaseratio.

bywhat

The theme name, like "citygroup" or "portroad".

Details

During report writing, merging now-value, previous-value, last-value into 1 dataframe is quite useful and concise. This function receive 3 column-like dataframes. Each column-like dataframes has two columns, one is "theme" like "citygroup" or "portroad". These 3 dataframes has the same theme. The other is Wmean. It's probably caculated by function caculate_carsmean or caculate_increaseratio.


ahorawzy/Mreport documentation built on May 3, 2019, 3:40 p.m.