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.
Unfortunatly that hadn't had an impact.
Now the error message would be:
Error: Problem with mutate() column y.
i y = recode(QUESTNNR,SQ_FR_2016 == “SQ”").
x object 'SQ_FR_2016 ' not found
Backtrace: