DataSHIELD implentation of dplyr::filter.

filterDS(tidy_expr, df.name, .by, .preserve)

Arguments

tidy_expr

Diffused expression that return a logical value, and are defined in terms of the variables in df.name.

df.name

A data frame, data frame extension (e.g. a tibble), or a lazy data frame (e.g. from dbplyr or dtplyr).

.by

Optionally, a selection of columns to group by for just this operation, functioning as an alternative to group_by.

.preserve

Relevant when the df.name input is grouped. If .preserve = FALSE (the default), the grouping structure is recalculated based on the resulting data, otherwise the grouping is kept as is.

Value

An object of the same type as df.name, typically a data frame or tibble.