set_variable: Set Hector variable to RCMIP data

Description Usage Arguments Value Author(s)

View source: R/set-variable.R

Description

Set Hector variable to RCMIP data

Usage

1
2
3
4
5
6
7
set_variable(
  core,
  input_data,
  varname = NULL,
  hector_vars = rcmip2hector_df(),
  interpolate = TRUE
)

Arguments

core

Hector core object

input_data

data.frame of RCMIP inputs for a specific scenario.

varname

RCMIP variable name. Defaults to unique Variable in input_data.

hector_vars

RCMIP to Hector variable conversion table

interpolate

(Logical) If TRUE (default), interpolate incomplete time series using stats::approxfun()

Value

core, invisibly

Author(s)

Alexey Shiklomanov


ashiklom/hector-rcmip documentation built on Sept. 23, 2020, 11:30 a.m.