How to Reverse-Code an Interval Scale in R

An easy way to clean questionnaire and measurement data

Rory Spanton
Towards Data Science
5 min readNov 1, 2022

--

Photo by Alex Green from Pexels

If you’re using R for data analysis, chances are you might run into a situation where you’re working with interval data. Often, it’s useful to be able to reverse data on an interval scale. Here’s how to do it, with step-by-step examples. If you want all the code featured in this article in one…

--

--

Behavioural Data Scientist @ Good With. Writing about data science, psychology, programming, and more. www.roryspanton.com