this is what i have
total2 %>%
mutate(happiness = case_when(GDP > 17300 ~ "happy",
Mortality < 29 ~ "happy"))
and this is the mistake
‘<’ not meaningful for factors
Any help appreciated
this is what i have
total2 %>%
mutate(happiness = case_when(GDP > 17300 ~ "happy",
Mortality < 29 ~ "happy"))
and this is the mistake
‘<’ not meaningful for factors
Any help appreciated