So I am trying to use an if then statement in R or an if then print.
if (Futures$Edge =="NONE") {Futures$Accuracy3->"NA"}
I want to make the accuracy3 NA if the edge is NONE, but after a lot of searching online I can't find one solution that doesn't insist on using ifelse.
I do not want to use ifelse because I have another if else previously that would be negated.
I continue to get the error message
Warning message: In if (Futures$Edge == "NONE") { : the condition has length > 1 and only the first element will be used
Thanks for the help.
Aucun commentaire:
Enregistrer un commentaire