View source: R/model_performance.kmeans.R
model_performance.kmeans | R Documentation |
Model summary for k-means clustering
## S3 method for class 'kmeans'
model_performance(model, verbose = TRUE, ...)
model |
Object of type |
verbose |
Toggle off warnings. |
... |
Arguments passed to or from other methods. |
# a 2-dimensional example
x <- rbind(
matrix(rnorm(100, sd = 0.3), ncol = 2),
matrix(rnorm(100, mean = 1, sd = 0.3), ncol = 2)
)
colnames(x) <- c("x", "y")
model <- kmeans(x, 2)
model_performance(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.