Description Usage Arguments Details Value Examples
View source: R/1_model_functions.R
Set the attribute for the health state
1 | set_var_state(state, var, new_value)
|
state |
object of class health state |
var |
attribute of the health state |
new_value |
new value to be assigned |
After checking the given state is a health state the value of the variable is set if the value is not numeric, it is being parsed to form an expression
modified health state
1 | set_var_state(health_state("IT", 100, 0.4, 0, FALSE), "cost", 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.