Skip to contents

Wraps a DataBackend around spatial objects. Currently these S3 methods are only alternative ways for writing DataBackendRaster$new() or DataBackendVector$new(). They do not support coercing from other backends yet.

Usage

# S3 method for stars
as_data_backend(data, primary_key = NULL, task_train = NULL, ...)

# S3 method for SpatRaster
as_data_backend(data, primary_key = NULL, task_train = NULL, ...)

# S3 method for RasterBrick
as_data_backend(data, primary_key = NULL, task_train = NULL, ...)

# S3 method for Raster
as_data_backend(data, primary_key = NULL, task_train = NULL, ...)

# S3 method for sf
as_data_backend(data, primary_key = NULL, ...)

Arguments

data

(terra::SpatRaster)
The input terra::SpatRaster.

primary_key

(character(1) | integer())
Name of the primary key column, or integer vector of row ids.

task_train

[mlr3::Task]
Task used for training the learner.

...

(any)
Not used.

Value

DataBackend.