Extract cluster assignments from k-means results and add them to a tibble.
Usage
# S3 method for class 'stat_kmeans'
collect(x, data = NULL, name = "cluster", ...)Examples
if (FALSE) { # \dontrun{
km <- boteft %>% stat_kmeans(k = 3)
# Add cluster assignments
collect(km)
# Custom column name
collect(km, name = "k3_cluster")
} # }
