powered by
rw
centroids(df,cl,rw=rep(1/nrow(df),nrow(df)))
data.frame
list
data(iris) centroids(iris[,-5],iris[,5])
Run the code above in your browser using DataLab