A tutorial for writing functions in R (CC177)
Writing your own R functions is critical to expanding the versatility and reproducibility of your code. In this epsiode Pat shares almost everything you’d ever want to know about writing your own R functions and then applies this knowledge to adapt the code he’s been writing in this series into a function. This is part of a series of videos demonstrating how to functions from base R to make these data compatible with tools from the tidyverse
Code
You can browse the state of the repository at the