Week 10: Factors and dates
Lectures
Labs
- Lab 10: Factors and Dates(PDF)
- Lab 10 solutions (password)
Additional readings
- R for Data Science: Factors
- R for Data Science: Dates and times
- forcats documentation
- lubridate documentation
Discussion
- A bar plot of weekdays is in alphabetical order. What went wrong, and how do you fix it with forcats?
- You subtract two dates and get a
difftime. When should you convert that to a number of days?