Hello, I have a similar issue and I was hoping that somebody could help me resolve it. I'm trying to recode Likert scale values using this
code:
MyData2 <- MyData1 %>%
mutate_at(vars("MIPIP_6", "MIPIP_7", "MIPIP_8", "MIPIP_9", "MIPIP_10", "MIPIP_15", "MIPIP_16", "MIPIP_17", "MIPIP_18", "MIPIP_19", "MIPIP_20"), ~recode(., 1=5, 2=4, 3=3, 4=2, 5=1))
and I get this error message:
Error: unexpected '=' in:
" "MIPIP_15", "MIPIP_16", "MIPIP_17", "MIPIP_18",
"MIPIP_19", "MIPIP_20"), ~recode(., 1="
My data is characters, but I get the same error message if I make it numeric before running the code. Any suggestions would be greatly appreciated. Thank you!