Hello community,
R beginner here. I'm trying to reverse scores in some columns in my scale.
Here's a repex:
data.frame(
Item1 = c(3, 4, 4, 6, 7),
Item2 = c(6, 7, 7, 8, 5),
Item3 = c(5, 4, 3, 5, 7),
Item4 = c(3, 8, 9, 8, 7),
Item5 = c(4, 5, 6, 3, 2),
Item6 = c(7, 8, 6, 5, 8)
)
In this situation, Items 1,3,5 should be reversed, ie: 3=7, 4=6, 6=4, 7=3.
I searched for answers, but almost all of them required downloading the "psych" or "car" packages, and for some reason I can't seem to be able to do that.
Is there a way to do such reversals simply? I have quite a few columns that require such reversals before I can average and analyze them as subscales.
Thanks!