restore {cohortBuilder} | R Documentation |
The method allows to restore Cohort object with provided configuration state.
restore(
x,
state,
modifier = function(prev_state, state) state,
run_flow = FALSE
)
x |
Cohort object. |
state |
List or JSON string containing steps and filters configuration. See get_state. |
modifier |
Function two parameters combining the previous and provided state. The returned state is then restored. |
run_flow |
If TRUE, filtering flow is applied when the operation is finished. |
The 'Cohort' class object having the state restored based on provided config.