Relative Content

Tag Archive for rif-statementrecode

Recoding of item files with if-loop in R

I´m a uni student who recently started learning to use statistical analysis code with R.
Unfortunately I´m not the best yet, and my prof. isn´t really willing to help. Which is why I´m hoping that maybe one of you knows the answer to my question:
What did I do wrong? My goal was to recode the Items the other way around, so that 1=5, 2=4, …
I thought that with an if-loop I´d be able to recode the items, but the script won’t run.