mlr3 (version 0.1.0-9000)

as_data_backend: Create a Data Backend

Description

Wraps a DataBackend around data.

Usage

as_data_backend(data, ...)

Arguments

data

:: any Data to create a DataBackend for. For a data.frame() (this includes tibble() from tibble and data.table::data.table()) this function creates a DataBackendDataTable. See methods("as_data_backend") for possible input formats. Note that third-party packages may extend this functionality.

...

:: any Additional arguments passed to the respective DataBackend method.

Value

DataBackend.

See Also

Other DataBackend: DataBackendDataTable, DataBackendMatrix, DataBackend

Examples

Run this code
# NOT RUN {
# create a new backend using the iris data:
as_data_backend(iris)
# }

Run the code above in your browser using DataCamp Workspace