delta: delta

Description Usage Arguments

View source: R/delta.R

Description

Function to calculate deltas from a GCAM base year value

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
delta(
  data = NULL,
  baseline = NULL,
  start_year = 2015,
  save = TRUE,
  diagnostics = TRUE,
  diagnostics_n = 20,
  diagnostics_col = "name",
  filename = NULL,
  folder = NULL,
  output_type = "wide"
)

Arguments

data

Default = NULL. Input data as R dataframe or CSV.

baseline

Default = NULL. Baseline data to apply deltas to.

start_year

Default = 2015.

save

Default = TRUE. Whether data should be printed as a csv or not.

diagnostics

Default = FALSE. Whether diagnostic figures should be produced.

diagnostics_n

Default = 20. Number of sub-plots in each diagnostic figure.

diagnostics_col

Default = NULL. Which column to plot diagnostics for.

filename

Default = NULL

folder

Default = NULL

output_type

Default = "wide". Output dimensions long or wide.


JGCRI/rpackageutils documentation built on Dec. 13, 2021, 10:05 p.m.