Live coding in R: No edits! Pat calculates the z-score (CC256)

October 13, 2022 • PD Schloss • 1 min read

In this episode Pat recorded the video in one take by live coding in R to show that typos, error messages, flaws in logic, confusion, and more are normal parts of programming. Pat shows one way to calculate the z-score of the amount of monthly precipitation relative to the same month over the past century. He does this using inner_join, rename, filter, group_by, mutate, and summarize. The overall goal of this project is to highlight reproducible research practices using a number of tools. The specific output from this project will be a map-based visual that shows the level of drought across the globe.

Code

You can browse the state of the repository at the