check_agent: Ensure data for a single RF agent is used on convolution

Description Usage Arguments Value

View source: R/check_conditions_funcs.R

Description

check_agent make sure that the rf and irf tibbles contain data for a single RF agent, if match_agents is true then make sure that both the RF agent in both rf and irf tibbles are the same.

Usage

1
check_agent(irf, rf, match_agents = FALSE)

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

match_agents

a logical value indicating whether to throw an error if the rf agent does not match the irf agent, default value is set to FALSE

Value

an error message if multiple agent conditions are not met in the rf and irf tibbles


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