我有一个关于犯罪的大型原始数据集,我想使用 k-means 对数据进行聚类,但是,当我输入此代码时出现错误:
Rawdata.3means <- kmeans(Rawdata, centers = 3).
错误:
Error in kmeans(Rawdata, centers = 3) :
more cluster centers than distinct data points.
In addition: Warning message:
In storage.mode(x) <- "double" : NAs introduced by coercion
如何解决此错误?