Here is my code:
library("tidyverse")
library("readxl")
library("dplyr")
COVID_survey_data <- read_excel("C:\\Users\\hreutter\\Desktop\\IDA_Survey_data\\IDA_CovidSurvey.xlsx", sheet = "IDA_CovidSurvey_2020-05-08")
revdata <- select(COVID_survey_data, final_qnum, q045:q047, q054, q057:q059, q063:q065, q110:q111)
REVdata <- data.frame(lapply(revdata, FUN = function(foo) recode(foo, '1=5; 2=4; 3=3; 4=2; 5=1')))
The last line is yielding the error for me but not for my co-worker. Any ideas why I'm getting the error or how to fix it?
I'm very new to R, so please write any help on the assumption that I know absolutely nothing. Thank you!