I expect to get the following output in R:
FALSE NA NA
TRUE NA NA
TRUE TRUE TRUE
FALSE FALSE FALSE
NA NA NA
I have tried working with this code: ifelse(x&&y,TRUE,FALSE) I get the correct answer in all cases except FALSE NA gives FALSE instead of NA.
Aucun commentaire:
Enregistrer un commentaire