Hi all,
I tried using recode which has worked for previous work but seems not to work for this dataset.
here is what I tried:
data_recode <- Version_A %>% mutate(NBIIA1 = recode(NBIIA1, "Strongly Disagree (-3)" = "1", "-2" = "2", "-1" = "3", "Neither Agree nor Disagree (0)" = "4", "1" = "5", "2" = "6", "Strongly Agree (3)" = "7"))
i have also tried:
recode_a <- recode(Version_A$NBIIA1, "Strongly Disagree (-3)" = 1, "-2" = 2, "-1" = 3, "Neither Agree nor Disagree (0)" = 4, "1" = 5, "2" = 6, "Strongly Agree (3)" = 7)%>%
as.data.frame(recode_a)
which worked but when it created the new data frame the column was named "." (also I need to do this for 25 columns and 4 versions)
So if anyone knows a more efficient way, or just anyway to get it to work it would be much appreciated!!!!