extract_clusters: Extract clusters from model

View source: R/extract_cluster.R

extract_clustersR Documentation

Extract clusters from model

Description

Extract clusters from model

Usage

extract_clusters(object, ...)

Arguments

object

An cluster_spec object.

...

Other arguments passed to methods.

Examples

set.seed(1234)
kmeans_spec <- k_means(k = 5) %>%
  set_engine_celery("stats")

kmeans_fit <- fit(kmeans_spec, ~., mtcars)

kmeans_fit %>%
  extract_clusters()

kbodwin/celery documentation built on March 26, 2022, 12:33 a.m.