These are lecture notes for a 1-credit Data Wrangling in R class I taught at the University of Virginia in the 2015 and 2016 spring semesters. The links below are to HTML notebooks of my R code. To view the original R code, click the "View on Github" link above.
- Lecture 0 - R and RStudio Essentials
- Lecture 1 - Data Structures
- Lecture 2 - Read and Write Data
- Lecture 3 - Data Manipulation, Part 1
- Lecture 4 - Data Manipulation, Part 2
- Lecture 5 - Combine, Merge and Reshape Data
- Lecture 6 - Strings and Dates
- Lecture 7 - Regular Expressions
- Lecture 8 - Aggregation
- Lecture 9 - The dplyr package
- Lecture 10 - The data.table package
- Lecture 11 - The tidyr package
- Lecture 12 - Generating and Simulating Data
The data used in these lectures are available here.