Extract the most frequent
cl.summary(clv)
clv | A clValid object |
---|
A value that indicates the proposed method and number of clusters.
This function returns the proposed method or number of clusters or both according to the majority clustering indices of a clValid process
#> Error in as.data.frame(data): object 'city_data' not foundmethod_clvalid = clValid::clValid(as.matrix(cl.data), 2:4, clMethods = c("pam", "kmeans"), validation = c("internal","stability"), metric = "euclidean")#> Error in as.matrix(cl.data): object 'cl.data' not foundcl.meth = cl.summary(method_clvalid)#> Error in inherits(clv, "clValid"): object 'method_clvalid' not foundcl.meth#> Error in eval(expr, envir, enclos): object 'cl.meth' not found