运行下面代码时报错
for ( i in 1:nrow(test)){
if ((test$a=="None") & (test$b!="None")){
test$type[i]="type3"
}
}
Error in if ((test$a == "None") & (test$b[i] != : missing
报错原因test$a或b中有缺失值。
运行下面代码时报错
for ( i in 1:nrow(test)){
if ((test$a=="None") & (test$b!="None")){
test$type[i]="type3"
}
}
Error in if ((test$a == "None") & (test$b[i] != : missing
报错原因test$a或b中有缺失值。