ifelse and NA problem in R

If your data frame contains NA values, then the R function ifelse might return results you don’t desire. Missing values might be a problem for ifelse. The first victory is that you are aware of that.

Exit mobile version