View source: R/as_task_clust.R
| as_task_clust | R Documentation |
Convert object to a TaskClust or a list of TaskClust. This is a S3 generic, specialized for at least the following objects:
TaskClust: returns the object as-is, possibly cloned.
formula, data.frame(), matrix(), and mlr3::DataBackend: provides an alternative to the
constructor of TaskClust.
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 = deparse1(substitute(x)), label = NA_character_, ...)
## S3 method for class 'matrix'
as_task_clust(x, id = deparse1(substitute(x)), label = NA_character_, ...)
## S3 method for class 'DataBackend'
as_task_clust(x, id = deparse1(substitute(x)), label = NA_character_, ...)
## S3 method for class 'formula'
as_task_clust(
x,
data,
id = deparse1(substitute(data)),
label = NA_character_,
...
)
as_tasks_clust(x, ...)
## S3 method for class 'list'
as_tasks_clust(x, clone = FALSE, ...)
## S3 method for class 'TaskClust'
as_tasks_clust(x, clone = FALSE, ...)
x |
(any) |
... |
(any) |
clone |
( |
id |
( |
label |
( |
data |
( |
TaskClust.
as_task_clust(datasets::USArrests)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.