This function creates a new filter for a CrunchDataset. You can achieve the same results
by assigning into a dataset's filters catalog usingfilters()
, but this may be a more natural
way to think of the action, particularly when you want to do something with
the filter entity after you create it.
newFilter(name, expression, catalog = NULL, ...)
character name for the filter
CrunchLogicalExpr with which to make a filter entity
FilterCatalog in which to create the new filter. May also
provide a dataset entity. If omitted, the function will attempt to infer the
dataset (and thus its FilterCatalog) from the contents of expression
.
Additional filter attributes to set, such as is_public
.
A CrunchFilter
object.