Data wrangling

How to work efficiently with data in R

Danielle Navarro
2021-06-14

The final section comes in two parts. It discusses reading data from and writing data to a CSV file, and introduces the pipe. Much of this section is devoted to a discussion of calculating descriptive statistics in R. The resources:

The second part provides an introduction to data wrangling in R, mostly focusing on dplyr. Topics covered include: extracting a subset of the data, rearranging the data, computing new variables in a data set, merging multiple data sets, and pivoting data between “long” and “wide” forms. Resources:

Good luck! And as always, please get in touch with me on slack if you have any questions!

NOTE: if you have run out of RStudio Cloud time and need to download the Cloud projects to work on your machine, you can use the zip files linked below.

Hello Data project 978818

A Dance with Data project 1006868