Week 4

Concept of tidy data, vectors and pivoting

Learning Objectives

  1. Learners can apply functions from the dplyr R Package to transform their data from a wide to a long format and vice versa
  2. Learners can list the four main atomic vector types in R
  3. Learners can explain the three characteristics of tidy data

Slides

🖥 Lecture 4 - Vectors & Tidy data - HTML

🖥 Lecture 4 - Vectors & Tidy data - Download PDF

Readings

📖 Read R for Data Science - Section 12 - Tidy data

📖 Read R for Data Science - Section 15 - Factors

Homework assignment

Complete the homework programming assignments that are in your project folder for week 4 on RStudio Cloud:

  • hw-04a-tidyr.qmd

Learning reflection

Complete the learning reflection that is in your project folder for week 4 on RStudio Cloud (learning-04.qmd).