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