Create, modify, and delete columns of a SedonaDB DataFrame

sd_transmute(.data, ...)

Arguments

.data

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

...

Named expressions for new columns to create. These are evaluated in the same way as dplyr::transmute() 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_transmute(y = x + 1L)
#> <sedonab_dataframe: ?? x 1>
#> ┌───────┐
#> │   y   │
#> │ int32 │
#> ╞═══════╡
#> │     2 │
#> ├╌╌╌╌╌╌╌┤
#> │     3 │
#> ├╌╌╌╌╌╌╌┤
#> │     4 │
#> ├╌╌╌╌╌╌╌┤
#> │     5 │
#> ├╌╌╌╌╌╌╌┤
#> │     6 │
#> ├╌╌╌╌╌╌╌┤
#> │     7 │
#> └───────┘
#> Preview of up to 6 row(s)