I am trying to implement kmeans clustering algorithm using Manhattan distance. I used the following code for implementing the same:
data<- read.csv("garments_worker_productivity.csv")
cluster<-kmeans(data,3,iter.max=10, nstart=1, method = "Manhattan")
I am receiving the following error:
Error in kmeans(data, 3, iter.max = 10, nstart = 1, method = "manhattan") :
unused argument (method = "Manhattan")
so how do I implement kmeans using Manhattan and Minkowski distance in r without an error?
thank you!