Learn R Programming

DrugClust (version 0.2)

KMeansClusteringAlgorithm: KMeans

Description

KMeans clustering algorithm

Usage

KMeans(train, num_clusters)

Arguments

train
matrix of train features
num_clusters
number of clusters desired

Value

cl list containing the clusters ownerships

Examples

Run this code
#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)

Run the code above in your browser using DataLab