层次聚类选择聚类数目,NbClust函数报错
原始代码如下
library(NbClust)
devAskNewPage(ask=TRUE)
nc<-NbClust(data2,distance = 'euclidean',min.nc = 1,max.nc = 10,method = 'average')
报错
Error in if ((resCritical[ncB - min_nc + 1, 3] >= alphaBeale) && (!foundBeale)) { :
missing value where TRUE/FALSE needed
In addition: There were 32 warnings (use warnings() to see them)
哪位兄弟帮一下,谢谢。
不知道你这个问题是否已经解决, 如果还没有解决的话: