Convert an Expr to R output
Description
This is mostly useful to debug an expression. It evaluates the Expr in an empty DataFrame and return the first Series to R.
Usage
<Expr>$to_r(
df = NULL,
i = 0,
...,
int64_conversion = polars_options()\$int64_conversion
)
Arguments
df
|
If NULL (default), it evaluates the Expr in an empty
DataFrame. Otherwise, provide a DataFrame that the Expr should be
evaluated in.
|
i
|
Numeric column to extract. Default is zero (which gives the first column). |
…
|
Any args pased to as.data.frame() .
|
int64_conversion
|
How should Int64 values be handled when converting a polars object to R?
|
Value
R object
Examples
#> [1] 1 2 3