将数据帧与矢量进行比较?

时间:2018-07-02 19:03:29

标签: r for-loop compare

for(i in as.matrix(na.omit(AlignmentBlockLength))) {
 if(c(i)/as.vector(TargetLength == 1)) {
   print("almost")
 }
}

我收到此警告:如果if(c(i)/as.vector(TargetLength == 1)){...   条件的长度> 1,并且仅使用第一个元素。不确定如何比较这两个?这两个变量都是数据帧。

0 个答案:

没有答案
相关问题