harmonize: Harmonization of model data to historical data, using...

View source: R/harmonize.R

harmonizeR Documentation

Harmonization of model data to historical data, using harmonization methods of aneris, ported to R. See: https://github.com/iiasa/aneris/blob/ad6301eb42155c968f20b2c7e071cbec039acc03/aneris/methods.py

Description

Harmonization of model data to historical data, using harmonization methods of aneris, ported to R. See: https://github.com/iiasa/aneris/blob/ad6301eb42155c968f20b2c7e071cbec039acc03/aneris/methods.py

Usage

harmonize(
  df,
  hist,
  finalYear = "2050",
  harmonizeYear = "2015",
  method = "ratio",
  suffix = ""
)

Arguments

df

data frame with model data to be harmonized, must have the following columns: variable, region, scenario, model, period

hist

data frame with historical data to be used for harmonization, must also have the following columns: variable, region, scenario, model, period

finalYear

when should harmonized data match model data again?

harmonizeYear

when should harmonization begin? sets model data = reference data for this year

method

harmonization method, currently supported methods are "ratio" and "offset"

suffix

to be appended to harmonized variables

Author(s)

Falk Benke


pik-piam/mip documentation built on April 5, 2024, 12:31 p.m.