[R] missing values error in if statement

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Fri May 20 13:32:37 CEST 2022

On Fri, 20 May 2022 10:16:05 +0200
Neha gupta <neha.bologna90 using gmail.com> wrote:

> prot <- ifelse(test$CE == '2', 1, 0)       /// Error comes here

I can't reproduce the error at this line with the data you have
attached. Are you sure it's not happening elsewhere? What does
traceback() say after the error?

Best regards,

More information about the R-help mailing list