Tag: Ifelse is not working properly in R