getparam: Get a time variable parameter from a table of step-changes

Description Usage Arguments Value

View source: R/sim.R

Description

Check to see if a parameter was given as a table of changes over time. If so, get the value of the parameter for the current time. Otherwise, return the parameter's constant value.

Usage

1
getparam(t, param)

Arguments

t

Simulation time value

param

A data frame giving the step changes in the parameter over time, or a single constant parameter value

Value

The current value for the parameter, if time variable, or the constant value, if not.


rplzzz/CovMitigation documentation built on June 7, 2021, 8:48 a.m.