apply_filter_predicate: Intermediate function to apply filter predicates on a data...

View source: R/filter_predicates.R

apply_filter_predicateR Documentation

Intermediate function to apply filter predicates on a data frame

Description

This function is used internally by all the ⁠get_*()⁠ functions to filter on deployments.

Usage

apply_filter_predicate(df, verbose, ...)

Arguments

df

Data frame we want to apply filter(s) expression(s)

verbose

Show (TRUE) or not (FALSE) the filter predicate expression.

...

filter predicates to apply to df

Value

A data frame.

See Also

Other filter functions: pred()

Examples

# and
apply_filter_predicate(
  mica$data$deployments,
  verbose = TRUE,
  pred_gte("latitude", 51.28),
  pred_lt("longitude", 3.56)
)
# Equivalent of
apply_filter_predicate(
  mica$data$deployments,
  verbose = TRUE,
  pred_and(
    pred_gte("latitude", 51.28),
    pred_lt("longitude", 3.56)
  )
)


# or
apply_filter_predicate(
  mica$data$deployments,
  verbose = TRUE,
  pred_or(
    pred_gte("latitude", 51.28),
    pred_lt("longitude", 3.56)
  )
)

inbo/camtraptor documentation built on June 2, 2025, 5:17 a.m.