Keep or drop columns of a SedonaDB DataFrame

sd_select(.data, ...)

Arguments

.data

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

...

One or more bare names. Evaluated like dplyr::select().

Value

An object of class sedonadb_dataframe

Examples

data.frame(x = 1:10, y = letters[1:10]) |> sd_select(x)
#> <sedonab_dataframe: ?? x 1>
#> ┌───────┐
#> │   x   │
#> │ int32 │
#> ╞═══════╡
#> │     1 │
#> ├╌╌╌╌╌╌╌┤
#> │     2 │
#> ├╌╌╌╌╌╌╌┤
#> │     3 │
#> ├╌╌╌╌╌╌╌┤
#> │     4 │
#> ├╌╌╌╌╌╌╌┤
#> │     5 │
#> ├╌╌╌╌╌╌╌┤
#> │     6 │
#> └───────┘
#> Preview of up to 6 row(s)