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