17  Flow Control: if/else, while, for (todo)

Note

Proposed chapter scope: Reference chapter on explicit flow control in R. Covers conditionals (if/else, ifelse, case_when) and loops (for, while). Positioned as reference material — the tidyverse/purrr workflow means readers rarely need explicit loops in practice, but understanding them is useful for reading others’ code and for edge cases.