KMeans clustering algorithm
matrix of train features
number of clusters desired
cl list containing the clusters ownerships
1 2 3 4
#use the initFeatures to upload train feature matrix #see also KSeedsClusters function to see a similar example #with a toy matrix #cl<-KMeans(train,num_clusters)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.