as_task_clust {mlr3cluster} | R Documentation |
Convert to a Cluster Task
Description
Convert object to a TaskClust. This is a S3 generic, specialized for at least the following objects:
-
TaskClust: ensure the identity.
-
data.frame()
and DataBackend: provides an alternative to calling constructor of TaskClust.
Usage
as_task_clust(x, ...)
## S3 method for class 'TaskClust'
as_task_clust(x, clone = FALSE, ...)
## S3 method for class 'data.frame'
as_task_clust(x, id = deparse(substitute(x)), ...)
## S3 method for class 'DataBackend'
as_task_clust(x, id = deparse(substitute(x)), ...)
## S3 method for class 'formula'
as_task_clust(x, data, id = deparse(substitute(data)), ...)
Arguments
x |
(any) |
... |
(any) |
clone |
( |
id |
( |
data |
( |
Value
Examples
as_task_clust(datasets::USArrests)
[Package mlr3cluster version 0.1.9 Index]