Skip to contents

Helper function to make adjustments to the filter of the spec object built by adam_spec() to be used with the pipe.

Usage

adjust_filter(spec, filter, append = TRUE)

Arguments

spec

martini_spec object to modify

filter

character vector of filter conditions

append

logical, if TRUE, append filter to existing filter(s), else replace

Value

A modified version of spec to be used as input to build()

Details

The function checks if the filter can be applied to the data attached to the spec. If the data is not attached, the filter will be added to the spec as is.