Keep rows of a SedonaDB DataFrame that match a condition

sd_filter(.data, ...)

Arguments

.data

A sedonadb_dataframe or an object that can be coerced to one.

...

Unnamed expressions for filter conditions. These are evaluated in the same way as dplyr::filter() except does not support extra dplyr features such as across() or .by.

Value

An object of class sedonadb_dataframe

Examples

data.frame(x = 1:10) |> sd_filter(x > 5)
#> <sedonab_dataframe: ?? x 1>
#> ┌───────┐
#> │   x   │
#> │ int32 │
#> ╞═══════╡
#> │     6 │
#> ├╌╌╌╌╌╌╌┤
#> │     7 │
#> ├╌╌╌╌╌╌╌┤
#> │     8 │
#> ├╌╌╌╌╌╌╌┤
#> │     9 │
#> ├╌╌╌╌╌╌╌┤
#> │    10 │
#> └───────┘
#> Preview of up to 6 row(s)