Perform clustering on the rows (usually cases) of a dataset.
Details
See docs.rtemis.org/r for detailed documentation.
Examples
iris_km <- cluster(exc(iris, "Species"), algorithm = "KMeans")
#> 2026-04-20 02:18:55
#> ▶
#> [cluster]
#> 2026-04-20 02:18:55
#> Input: 150 cases x 4 features.
#> [summarize_unsupervised]
#> 2026-04-20 02:18:55
#> Clustering with KMeans...
#> [cluster]
#> 2026-04-20 02:18:56
#> Checking unsupervised data...
#>
#> ✓
#> [check_unsupervised_data]
#>
#> 2026-04-20 02:18:56
#> Clustering with KMeans ...
#> [cluster_]
#> 2026-04-20 02:18:56
#> ✓ Done in 0.06 seconds.
#> [cluster]