Lecture 02 - Working with Data
Meta
Key Topics
Analysis development Data cleaning base dplyr ggplot2 knitr magrittr Notebooks Plotting and visualization R rmarkdown testDriveR utils
Resources
Open on Open on Example Code Functions Lab-01 Lab-01 Replication Starter Notebook
A Quick Note
The lectures are dated for 2017 but not updates are planned to the videos or slides for this year. Please watch them in order, and take the time to practice along with the examples in R for Data Science. I will have my office hours as usual on Wednesday should questions come up, and will be available on Slack all week.
Lecture 02a - Introducing ggplot2
Slides
Video Lecture
Lecture 02b - Grammar of Graphics
Slides
Video Lecture
Lecture 02c - Verbs for Cleaning Data
Note: The video is titled “Lecture 3” - this is not a mixup, just a holdover from a past semester!
Slides
Video Lecture
Lecture 02d - Structuring Notebooks
Note: The video is titled “Lecture 4” - this is not a mixup, just a holdover from a past semester!
Slides
Video Lecture
Slack Discussions
- Lecture Release
testDriveR
updates- Final Project questions
- General coursework questions
- Error messages in
R
and package installation - Notebook structure
Data for Assignments
The data that you need for many of the assignments this semester is available as an R
package named testDriveR
. On the initial course software instructions, you were told to download and install it from GitHub. As of September 1, I am happy to annouce that testDriveR
is on CRAN. Please re-install the package:
install.packages("testDriveR")
Starter Notebook
Based on a question from a student, I’ve posted an empty notebook structure that you can use to start your assignments. If you click on the Raw
button, or follow this link, you’ll get plain text that you can copy into RStudio.
Cheatsheets
RStudio offers a number of cheatsheets that you may find useful. FYI - they offer way more detail than what I provide. This is intentional on my part. So, if you feeling confident and are looking to build upon what a particular week covers, check them out!
Extra Information
This week, I mentioned a number of important figures. If you want more information, you can check out these Wikipedia pages: