Description Usage Arguments Value
Preform k-means clustering on a dataset.
1 | k_means(x, centers, PCA = F, plus.plus = F)
|
x |
numeric matrix of data, or an object that can be coerced to such a matrix (such as a numeric vector or a data frame with all numeric columns). |
centers |
the number of clusters k. |
PCA |
logical indicating if you want to preform a PCA transformation on the data. |
plus.plus |
logical indicating if you want to use the k-means++ algorithm for improved choosing of initial values. |
A list containing cluster means, clustering vector, and total SSE.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.