Week 2) Summarize data with dplyr and write your first Quarto report
Learning Goals
- Coding: apply ITO and
dplyrfor filtering, aggregation, andgroup_by()summaries (without merges), and produce summary tables in Quarto. - Collaboration: practice
git clone,git pull,git push, and forking workflows, and write a clearREADME.md. - Automation: render and rerun Quarto documents from the command line to make reporting reproducible.
Preparation before class
- Please read chapters 3-4 of “Marketing Analytics: A Modern Toolkit” (and optionally the Appendix: Coding with AI tools, R - Markdown, R - ggplot2)
- Please complete the code quests for week 2 (Git Quest and Markdown Quest)
Tutorial
- Tutorial: From raw data to summary tables and a Quarto report
Coaching session
- Work on your team goals for this course week (see coaching #1 on your workplan).
After the lecture
- Complete all exercises from the tutorial shared with students this week.
Optional practice
- Work through R for Social Scientists chapters 6-7 (plotting with
ggplot2and getting started with R Markdown). - Develop your R skills with Intermediate R on Datacamp (chapter 1, 2 and 3).