Tag: ifelse returning NA in R