Calculate difference between scenarios or time periods

calculate_diff(
  data = NULL,
  scenRef = NULL,
  scenDiff = NULL,
  xRef = NULL,
  xDiff = NULL,
  diff_type = "both",
  diff_type_x = "both",
  diff_text_percent = "diffPrcnt",
  diff_text_absolute = "diffAbs",
  diff_text_percent_x = "xdiffPrcnt",
  diff_text_absolute_x = "xdiffAbs"
)

Arguments

data

Default = NULL.

scenRef

Default = NULL. Reference Scenario

scenDiff

Default = NULL. Difference Scenarios

xRef

Default = NULL. Reference x

xDiff

Default = NULL. Difference x

diff_type

Default = "both". One of "absolute", "percent", "both".

diff_type_x

Default = "both". One of "absolute", "percent", "both".

diff_text_percent

Default = "_diffPrcnt"

diff_text_absolute

Default = "_diffAbs"

diff_text_percent_x

Default = "_xdiffPrcnt"

diff_text_absolute_x

Default = "_xdiffAbs"