Skip to content

Keep the original root name of the expression.

Source code

Description

Keep the original root name of the expression.

Usage

<Expr>$name$keep()

Value

Expr

Examples

library(polars)

pl$DataFrame(list(alice = 1:3))$select(pl$col("alice")$alias("bob")$name$keep())
#> shape: (3, 1)
#> ┌───────┐
#> │ alice │
#> │ ---   │
#> │ i32   │
#> ╞═══════╡
#> │ 1     │
#> │ 2     │
#> │ 3     │
#> └───────┘