Update source in Cohort object.
update_source(x, source, keep_steps = !has_steps(source), run_flow = FALSE)
The `Cohort` class object with updated `Source` definition.
Cohort object.
Source object to be updated in Cohort.
If `TRUE`, steps definition remain unchanged when updating source. If `FALSE` steps configuration is deleted. If vector of type integer, specified steps will remain.
If `TRUE`, data flow is run after the source is updated.
managing-cohort