View source: R/extract_cluster.R
| extract_clusters | R Documentation |
Extract clusters from model
extract_clusters(object, ...)
object |
An cluster_spec object. |
... |
Other arguments passed to methods. |
set.seed(1234)
kmeans_spec <- k_means(k = 5) %>%
set_engine_celery("stats")
kmeans_fit <- fit(kmeans_spec, ~., mtcars)
kmeans_fit %>%
extract_clusters()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.