R/as_task_unsupervised.R

Defines functions as_task_unsupervised.sf as_task_unsupervised.stars as_task_unsupervised.SpatRaster as_task_unsupervised.RasterStack as_task_unsupervised.RasterBrick

#' @export
as_task_unsupervised.RasterBrick = function(x, id = deparse(substitute(x)), label = NA_character_, ...) {
  TaskUnsupervised$new(id = id, backend = x, label = label)
}

#' @export
as_task_unsupervised.RasterStack = function(x, id = deparse(substitute(x)), label = NA_character_, ...) {
  TaskUnsupervised$new(id = id, backend = x, label = label)
}

#' @export
as_task_unsupervised.SpatRaster = function(x, id = deparse(substitute(x)), label = NA_character_, ...) {
  TaskUnsupervised$new(id = id, backend = x, label = label)
}

#' @export
as_task_unsupervised.stars = function(x, id = deparse(substitute(x)), label = NA_character_, ...) {
  TaskUnsupervised$new(id = id, backend = x, label = label)
}

#' @export
as_task_unsupervised.sf = function(x, id = deparse(substitute(x)), label = NA_character_, ...) {
  TaskUnsupervised$new(id = id, backend = x, label = label)
}

Try the mlr3spatial package in your browser

Any scripts or data that you put into this service are public.

mlr3spatial documentation built on Aug. 12, 2025, 1:08 a.m.