Data Wrangling in R

Lecture Slides Lecture Slides (pdf) Lecture Slides (ipynb)

Tutorial Exercise Tutorial Exercise (pdf) Tutorial Exercise (ipynb)


Working with data is at the centre of programming in R. In addition to core functionality of base R, many new packages, such as tidyverse collection provide advanced data manipulation facilities and enhanced experience of working with tabular data. In this week we will focus on data frame and its tidyverse cousin tibble. We will also discuss formats of data storage and functions for data I/O and descriptive analysis.

Required Readings

Additional Readings

  • Peng Chs 13: Managing Data Frames, 18: Loop Functions.

Tutorial

  • Data input and output
  • Working with data in base R and tidyverse