سؤال

I want to determine the optimal number of clusters with R using the gap statistics in the following way

library(cluster)

clusGap(datamatrix, FUN=kmeans, K.max=10, B=10)

However I get the error

Error: could not find function "clusGap"

What does this mean? I have the cluster package because I can use the other functions. Was this function removed or do I do something wrong?

هل كانت مفيدة؟

المحلول

I had an old version of the cluster package.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top