View source: R/unsupervised-clustering.R
| calc_wss | R Documentation |
Used for elbow method to determine optimal k
calc_wss(data, max_k = 10, nstart = 25)
data |
A data frame or tibble |
max_k |
Maximum number of clusters to test (default: 10) |
nstart |
Number of random starts for each k (default: 25) |
A tibble with k and corresponding total within-cluster SS
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.