model_performance.kmeans: Model summary for k-means clustering

Description Usage Arguments Examples

View source: R/model_performance.kmeans.R

Description

Model summary for k-means clustering

Usage

1
2
## S3 method for class 'kmeans'
model_performance(model, verbose = TRUE, ...)

Arguments

model

Object of type kmeans.

verbose

Toggle off warnings.

...

Arguments passed to or from other methods.

Examples

1
2
3
4
5
6
7
8
# 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)

performance documentation built on Oct. 1, 2021, 5:08 p.m.