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.
You can find my blog post for this episode at https://www.riffomonas.org/code_club/....
#inner_join #anti_join #Rstats #R
Support Riffomonas by becoming a Patreon member!
/ riffomonas
Want more practice on the concepts covered in Code Club? You can sign up for my weekly newsletter at https://shop.riffomonas.org/youtube to get practice problems, tips, and insights.
If you're interested in taking an upcoming 3 day R workshop be sure to check out our schedule at https://riffomonas.org/workshops/
You can also find complete tutorials for learning R with the tidyverse using...
Microbial ecology data: https://www.riffomonas.org/minimalR/
General data: https://www.riffomonas.org/generalR/
0:00 Introduction
3:18 Join 2022 data to all other data
6:08 Renaming columns with rename
7:01 Calculating the 2022 z-score
10:40 Double checking z-score calculations
15:57 Recapping additions to pipeline