as_polars_backend {mlr3db} | R Documentation |
Convert to Polars Backend
Description
Converts to a DataBackendPolars using the polars database, depending on the input type:
-
data.frame
: Creates a new mlr3::DataBackendDataTable first usingmlr3::as_data_backend()
, then proceeds with the conversion from mlr3::DataBackendDataTable to DataBackendPolars. -
mlr3::DataBackend: Creates a new DataBackendPolars.
There is no automatic connection to the origin file set.
If the data is obtained using scanning and the data is streamed, a connector
can be set manually but is not required.
Usage
as_polars_backend(data, streaming = FALSE, ...)
Arguments
data |
( |
streaming |
( |
... |
( |
Value
DataBackendPolars or mlr3::Task.