Issue with case_when use

Your code works for me. Are you sure that your variable name in your data frame (df) is called Country? I really can't help any more unless you provide a full reproducible example. See here for how to create one: