Hi all,

I have a dataset containing values ranging from 1 to 3. I'd like to replace all the 1 to 3, and all the 3 to 1. But if I first run the code for replacing 1 to 3, and then run the second code to replace 3 to 1, then all the replaced 3 including the original 3 gets replaced with 1. Is there a way to turn only the original 1 and 3 to 3 and 1 respectively? ( I cannot change it to any other value)
Thanks in advance.