Fit K-means to klassets_cluster object using stats::kmeans
Arguments
- df
A
klassets_clusterobject.- centers
A numeric value to pass to
stats::kmeansmethod. The famous k parameter.- ...
Extra parameter for
stats::kmeansfunction.
Examples
set.seed(12)
df <- sim_groups(n = 200, groups = 3)
plot(df)
dfc <- fit_statskmeans(df, centers = 4)
plot(dfc)