k_means | R Documentation |
Implements a basic k-means algorithm
k_means(dat, k, pca = FALSE)
dat |
A data frame |
k |
The number of observations to use as starting points |
pca |
An option if you want to perform PCA before doing the k_means clustering |
A list with the cluster assignments and total sum of squares
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.