Changing names of variables with the function mutate() in dplyr

Hi,
I have been trying to mutate variables in a dataset to different names. The variables represent seasons, so 1 is Spring and 4 is Winter, with Summer and Autumn in between. However, I don't want the seasons to be called by their numbers but by their actual names. I have to do this using a dplyr function because of this specific assignment I'm supposed to do but can't find anywhere how to do so. Does anybody know how to handle this problem? Thank you,
Olivier

You can use dplyr::case_when()

Also, for guidelines about how to properly ask homework related questions here, please read our homework policy.

Thank you for responding! I couldn't make it work that way but I'll keep trying. I'll ask my questions in the homework part of this community next time, I wasn't aware but thank you.
Kind regards,
Olivier

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.