Learn R Programming

crunch (version 1.30.4)

newFilter: Create a new filter

Description

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.

Usage

newFilter(name, expression, catalog = NULL, ...)

Value

A CrunchFilter object.

Arguments

name

character name for the filter

expression

CrunchLogicalExpr with which to make a filter entity

catalog

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.