fit_statskmeans | R Documentation |
klassets_cluster
object using stats::kmeans
Fit K-means to klassets_cluster
object using stats::kmeans
fit_statskmeans(df, centers = 3, ...)
df |
A |
centers |
A numeric value to pass to |
... |
Extra parameter for |
set.seed(12) df <- sim_groups(n = 200, groups = 3) plot(df) dfc <- fit_statskmeans(df, centers = 4) plot(dfc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.