View source: R/unsupervised-clustering.R
| optimal_clusters | R Documentation |
Use multiple methods to suggest optimal k
optimal_clusters(data, max_k = 10, methods = c("silhouette", "gap", "wss"))
data |
A data frame or tibble |
max_k |
Maximum k to test (default: 10) |
methods |
Vector of methods: "silhouette", "gap", "wss" (default: all) |
A list with results from each method
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.