Skip to content

To polars LazyFrame

Source code

Description

as_polars_lf() is a generic function that converts an R object to a polars LazyFrame. It is basically a shortcut for as_polars_df(x, …) with the $lazy() method.

Usage

as_polars_lf(x, ...)

# Default S3 method:
as_polars_lf(x, ...)

# S3 method for class 'RPolarsLazyFrame'
as_polars_lf(x, ...)

# S3 method for class 'RPolarsLazyGroupBy'
as_polars_lf(x, ...)

Arguments

x Object to convert to a polars DataFrame.
Additional arguments passed to methods.

Value

a LazyFrame

Examples

library(polars)

as_polars_lf(mtcars)
#> polars LazyFrame
#>  $describe_optimized_plan() : Show the optimized query plan.
#> 
#> Naive plan:
#> DF ["mpg", "cyl", "disp", "hp"]; PROJECT */11 COLUMNS; SELECTION: None