R中的相关函数出错

时间:2016-06-14 05:51:00

标签: r correlation

您好我正在尝试使用findCorrelation函数但收到此错误。我无法理解这个错误究竟是什么。

Error in findCorrelation(descrCor,cutoff = 0.7) :
only one variable given

代码如下: -

numeric_ds<-modified_ds[sapply(modified_ds,is.numeric)]
numeric_ds[is.na(numeric_ds)]<-0
descrCor <- cor(numeric_ds)
highlyCorrelated <- findCorrelation(descrCor,cutoff = 0.70)

如何避免这种错误以及这是什么。

0 个答案:

没有答案
相关问题