Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.14 KB

README.md

File metadata and controls

51 lines (38 loc) · 1.14 KB

relational

The goal of relational is to represent expressions and provide a set of generics for transformations of tables (relations).

Installation

You can install the development version of relational like so:

devtools::install_github("duckdblabs/relational")

Example

Expressions

library(relational)

expr_function(
  "+", 
  list(
    expr_reference("column"),
    expr_constant(42, alias = "fortytwo")
  )
)
#> list(
#>   name = "+",
#>   args = list(
#>     list(name = "column", alias = NULL) |>
#>       structure(class = c("relational_expr_reference", "relational_expr")),
#>     list(val = 42, alias = "fortytwo") |>
#>       structure(class = c("relational_expr_constant", "relational_expr"))
#>   ),
#>   alias = NULL
#> ) |>
#>   structure(class = c("relational_expr_function", "relational_expr"))

Code of Conduct

Please note that the relational project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.