set_var_state {packDAMipd} | R Documentation |
Set the attribute for the health state
Description
Set the attribute for the health state
Usage
set_var_state(state, var, new_value)
Arguments
state |
object of class health state |
var |
attribute of the health state |
new_value |
new value to be assigned |
Details
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
Value
modified health state
Examples
set_var_state(health_state("IT", 100, 0.4, 0, FALSE), "cost", 1)
[Package packDAMipd version 1.1.0 Index]