运行Hopkins函数时出错

时间:2018-06-07 13:10:26

标签: r

以下代码会产生以下错误。我该如何解决这个问题?因为我使用的是clusterend的泛型函数。我是否对数据进行了更改?

hopkins(DF2, n = nrow(DF2)-1, byrow=FALSE, header=FALSE)

**Error in if (sum(abs(error)) != 0) { : missing value where TRUE/FALSE   needed

In addition: There were 11 warnings (use warnings() to see them)**
Warning messages:
1: In runif(n, min = c[i], max = d[i]) : NAs produced
2: In runif(n, min = c[i], max = d[i]) : NAs produced
3: In runif(n, min = c[i], max = d[i]) : NAs produced
4: In runif(n, min = c[i], max = d[i]) : NAs produced
5: In runif(n, min = c[i], max = d[i]) : NAs produced
6: In runif(n, min = c[i], max = d[i]) : NAs produced
7: In runif(n, min = c[i], max = d[i]) : NAs produced
8: In runif(n, min = c[i], max = d[i]) : NAs produced
9: In runif(n, min = c[i], max = d[i]) : NAs produced
10: In runif(n, min = c[i], max = d[i]) : NAs produced
11: In runif(n, min = c[i], max = d[i]) : NAs produced

0 个答案:

没有答案