Lecture 8

Writing Functions

November 25, 2025


Slides & Code

HTML slidesRaw qmd fileR Code


Suggested Reading (from R for Data Science (2e)1)

Chapter 26: Functions


1 Hadley Wickham, Mine Çetinkaya-Rundel & Garrett Grolemund

Useful Resources

Other Readings

Programming with tidyr
Programming with dplyr
Programming with ggplot
What is data-masking and why do I need {{
Hands on Programming with R 2
Advanced R3: Chapter 6 - Functions
Advanced R: Functional Programming

2 Garrett Grolemund

3 Hadley Wickham

Crowdsource Help

CS&SS 508 Slack WorkspacePosit communityStackoverflow