View source: R/08_create_add_shock.R
add_shock | R Documentation |
Add shock to shock object
add_shock(
shock,
variable,
value = NA,
rate = NA,
absolute = NA,
start = NA,
end = NA,
desc = ""
)
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 |
updated shock object containing added shock
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.