Tag: strange ifelse results in R