run_in: Run in the model dataset

Description Usage Arguments Examples

View source: R/run_in.R

Description

Takes the model input dataframe and calculates an averaged run-in row based on the number of years specified in dur. Returns the model input dataframe with the run-in row appended to the top of the data. The variables indicated as year and climdata are excluded from the run-in row.

Usage

1
run_in(data, dur = 10, year = "year", climdata = "climdata")

Arguments

data

A tibble containing model input data. See toy_input for example; run ?toy_input for variable interpretation and units.

dur

An integer value specifying the number of rows to enter into the run-in calculation. Defaults to 10 years.

year

A character string indicating the name of the variable containing the year input. Defaults to "year".

climdata

A character string indicating the name of the list column containing climate data. Defaults to "climdata".

Examples

1
2
run_in(soilc.ipcc::toy_input,
       dur = 10)

aj-sykes92/soilc.ipcc documentation built on March 19, 2021, 11:52 a.m.