Continuing on with the data cleaning theme of our previous 3 episodes, Ellis Hughes and I work through messy excel data that was simulated to look like something we’d see in practice.
We decided to take turns with this, to show how both of us might handle the problem. This week is my approach to handling the issue and next week will be Ellis approach.
Things that we cover:
- Reading in excel files to R, selecting the tabs to read data from, and setting the data types
- Turning messy data in a data frame that can be analyzed
- Writing a for loop to operationalize the approach over a larger excel file, with many tabs
To access our code, CLICK HERE.
To watch the screen cast, CLICK HERE.