I am using R for the first time and need to analyze a dataset for a psychology project. I need help writing a line of code to rescale question npi_6 so that numerical values 1=2 & 2=1 across all participants' ratings. Once that is done I need a code that will find an average for the npi dependent measure across all npi_# items including the newly rescaled one.
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one: