Skip to contents

Add filter definition

Usage

add_filter(x, filter, step_id, ...)

# S3 method for Cohort
add_filter(x, filter, step_id, run_flow = FALSE, ...)

# S3 method for Source
add_filter(x, filter, step_id, ...)

Arguments

x

An object to add filter to.

filter

Filter definition created with filter.

step_id

Id of the step to add the filter to. If missing, filter is added to the last step.

...

Other parameters passed to specific S3 method.

run_flow

If `TRUE`, data flow is run after the filter is added.

Value

Method dependent object (i.e. `Cohort` or `Source`) having filter added in selected step.