as_data_backend.stars {mlr3spatial} | R Documentation |
Coerce to spatial DataBackend
Description
Wraps a DataBackend around spatial objects.
Currently these S3 methods are only alternative ways for writing DataBackendRaster$new()
.
They do not support coercing from other backends yet.
Usage
## S3 method for class 'stars'
as_data_backend(data, primary_key = NULL, ...)
## S3 method for class 'SpatRaster'
as_data_backend(data, primary_key = NULL, ...)
## S3 method for class 'RasterBrick'
as_data_backend(data, primary_key = NULL, ...)
## S3 method for class 'RasterStack'
as_data_backend(data, primary_key = NULL, ...)
## S3 method for class 'sf'
as_data_backend(data, primary_key = NULL, keep_rownames = FALSE, ...)
Arguments
data |
(terra::SpatRaster) |
primary_key |
( |
... |
( |
keep_rownames |
( |
Value
[Package mlr3spatial version 0.5.0 Index]