clusters data into two clusters. This functionis uses the
kmeans function to cluster the data and exports the clustering results as well as the sum of square (SS) of clustering using the Euclidian distance.
clusters_km(x, k = 2)
matrix of data (dim 1: samples (must be equal to dim 1 of X), dim 2: attributes (must be equal to dim 2 of X))
number of clusters ( this version considers 2 clusters )
sum of square (SS) of clustring
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.