Week 7

Writing functions and pipelines

weeks
Published

October 9, 2024

Summary
This week is a more detailed look at functions as a key element of building reproducible data analysis pipelines.

Overview

Key Objectives

  • Introduce process of refactoring code to write functions
  • Practice naming functions and adding comments to functions
  • Introduce the concept of reproducible data analysis pipelines

Prepare

Required readings

Optional readings

  • Sam Leon “Accounting for Methods: Spreadsheets, Scripts and Programming Notebooks,” in The Data Journalism Handbook: Towards A Critical Data Practice, ed. Liliana Bounegru and Jonathan Gray, 2nd ed. (Amsterdam University Press, 2021), 128–137, doi:10.2307/j.ctv1qr6smr.
  • Welcome to Quarto Workshop! (Posit PBC, 2022), https://www.youtube.com/watch?v=yvi5uXQMvu4.

Participate

🖥️ Writing functions and pipelines

Practice

Details on week 7 exercise to be provided.