fit_kmeans | R Documentation |
klassets_cluster
objectFit K-means to klassets_cluster
object
fit_kmeans(df, centers = 3, ...)
df |
A |
centers |
A numeric value to pass to |
... |
Extra parameters for |
set.seed(12) df <- sim_groups(n = 200, groups = 3) plot(df) set.seed(124) dfc <- fit_kmeans(df, centers = 4, max_iterations = 6) plot(dfc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.