extract_cluster_assignment: Extract cluster assignments from model

View source: R/extract_assignment.R

extract_cluster_assignmentR Documentation

Extract cluster assignments from model

Description

Extract cluster assignments from model

Usage

extract_cluster_assignment(object, ...)

Arguments

object

An cluster_spec object.

...

Other arguments passed to methods.

Examples

kmeans_spec <- k_means(k = 5) %>%
  set_engine_celery("stats")

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

kmeans_fit %>%
  extract_cluster_assignment()

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