do_one(nmeth)中的错误:外部函数调用(参数1)中的NA/NaN/Inf [英] Error in do_one(nmeth) : NA/NaN/Inf in foreign function call (arg 1)

查看:1703
本文介绍了do_one(nmeth)中的错误:外部函数调用(参数1)中的NA/NaN/Inf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个数据表(范数"),其中包含数字-至少在我所能看到的范围内-以下形式的规范化值:

I have a data table ("norm") containing numeric - at least to what I can see - normalized values of the following form:

我执行时

k <- kmeans(norm,center=3)

我收到以下错误:

Error in do_one(nmeth) : NA/NaN/Inf in foreign function call (arg 1)

你能帮我吗?谢谢!

推荐答案

kmeans无法处理具有NA值的数据.

kmeans cannot handle data that has NA values.

然后,均值和方差不再得到很好的定义,并且您不再知道哪个中心最近.

The mean and variance are then no longer well defined, and you don't know anymore which center is closest.

这篇关于do_one(nmeth)中的错误:外部函数调用(参数1)中的NA/NaN/Inf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆