check_time: Check the irf and rf inputs before performing convolution

Description Usage Arguments Value

View source: R/check_conditions_funcs.R

Description

check_time checks to see if the IRF and the RF time series can be be convolved in the contributing_temp function. The irf and rf data frame must contain values that correspond to temporal data that consists of only one time step, that is equal in both data frames and spans an equal number of years. If thes conditions are not met then this function will throw an error and prevent the convolution.

Usage

1
check_time(irf, rf)

Arguments

irf

the impulse response function tibble, must contain a year and value column

rf

the radiative forcing time series tibble, must contain a year and value column

Value

an error message if the two data frames do not meet the criteria.


JGCRI/HIRM documentation built on May 7, 2020, 9:38 a.m.