Hello!
i've been trying to recode my data with the mutate function:
data <- data %>%
mutate(y = recode(QUESTNNR,
SQ_EN_2016 = “SQ”)
After I tried to run this command, the following error message appeared:
Error: Problem with ’mutate () ' column ’y'.
i ’y = recode (. . . ) '.
x unused arguments (SQ_EN_2016 = “SQ”)
Backtrace:
- data %>% mutated (y = recode (QUESTNNR, SQ_FR_2016 = “SQ”))
- base::. handleSimpleError (. . . )
- dplyr:::h (simpleError (msg, call))
In contrast, the command went through normally yesterday, which is no longer the case.
Since I haven't changed the command in the meantime, I wanted to ask what the source of the error could be.
Thanks a lot for your help!