26.1 Intro
Good iteration - Pre-allocate the shape/structure and then fill in the data.
Imperative programming - for
loops and while
loops make iteration very explicit.
Functional programming - common for
loop patterns get their own functions, so you can streamline your code even more.
Packages: library(tidyverse)
, library(purrr)