add_shock {godley} | R Documentation |
Add shock to shock object
Description
Add shock to shock object
Usage
add_shock(
shock,
variable,
value = NA,
rate = NA,
absolute = NA,
start = NA,
end = NA,
desc = ""
)
Arguments
shock |
tibble from |
variable |
string variable name |
value |
numeric, an explicit value or values for the variable, will be extended with last value |
rate |
numeric, multiplier to influence the original value of the variable |
absolute |
numeric, absolute value to influence the original value of the variable |
start |
numeric or date period number for the shock to take place, defaults to NA |
end |
numeric or date period number for the shock to take place, defaults to NA |
desc |
string variable description |
Value
updated shock object containing added shock
[Package godley version 0.2.2 Index]