powered by
KMeansModel(train, trainpharmat, num_clusters, cl)
#First call the KMeans function and obtain cl (list of clusters) #train is the feature matrix of train #trainpharmat is the side effect matrix of train #A<-KMeansModel(train,trainpharmat,4,cl)
Run the code above in your browser using DataLab