View source: R/extract_assignment.R
Extract cluster assignments from model
An cluster_spec object.
Other arguments passed to methods.
tibble::tibble() with 1 column
kmeans_spec <- k_means(num_clusters = 5) %>% set_engine("stats") kmeans_fit <- fit(kmeans_spec, ~., mtcars) kmeans_fit %>% extract_cluster_assignment()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.