Convert object to a density task (TaskDens).
as_task_dens(x, ...)# S3 method for TaskDens
as_task_dens(x, clone = FALSE, ...)
# S3 method for data.frame
as_task_dens(x, id = deparse(substitute(x)), ...)
# S3 method for DataBackend
as_task_dens(x, id = deparse(substitute(x)), ...)
(any
)
Object to convert, e.g. a data.frame()
.
(any
)
Additional arguments.
(logical(1)
)
If TRUE
, ensures that the returned object is not the same as the input x
.
(character(1)
)
Id for the new task.
Defaults to the (deparsed and substituted) name of x
.