Using case_when instead of ifelse to create a new variable

Hi!

To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Having a sample of your data will be very helpful in diagnosing the issue you are having. Please have a look at this guide, to see how to create one:

1 Like