The method allows to restore Cohort object with provided configuration state.
Arguments
- 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.