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-15 11:20:21
#> ▶
#> [cluster]
#> 2026-02-15 11:20:21
#> Input: 150 cases x 4 features.
#> [summarize_unsupervised]
#> 2026-02-15 11:20:21
#> Clustering with KMeans...
#> [cluster]
#> 2026-02-15 11:20:21
#> Checking unsupervised data...
#>
#> ✓
#> [check_unsupervised_data]
#>
#> 2026-02-15 11:20:21
#> Clustering with KMeans ...
#> [cluster_KMeans]
#> 2026-02-15 11:20:21
#> ✓ Done in 0.08 seconds.
#> [cluster]