(Builds on: Data structure basics)
The tidyverse functions that you’ve focussed on so far are holistic: they take a complete data frame and perform various transformations on it. When writing your own functions it’s better to start with functions that work with vectors because they are much simpler. You’ve used vectors quite a bit, but we haven’t yet discussed them in detail.
Vector basics [r4ds-20.2]
Important types of atomic vector [r4ds-20.3]
Recursive vectors (lists) [r4ds-20.5]