Tag: Incorrect results with ifelse in R