Functions & Debugging

Artwork by @allison_horst

Functions are the “verbs” of R – they allow you to actually do interesting things with your data. We will cover the basics of how to use functions in R, how to get access to different functions by downloading packages and some general principles for what to do when you run into problems.


Slides


Further Reading

  1. How to read an R help page by Kieran Healy

  2. “Object of type ‘closure’ is not subsettable”, keynote talk by Jenny Bryan at rstudio::conf(2020)

  3. Deep dive into debugging by Jim Hester

Department of Psychology

This bootcamp gives a gentle introduction to R and RStudio, transforming and visualizing data with the tidyverse, and the basics of R Markdown.