Define R Functions

Format

While loop

Next loop

Functional programming

PURRR package 1

map2 etc

1.
Wickham H, Henry L. purrr: Functional Programming Tools [Internet]. Available from: https://cran.r-project.org/web/packages/purrr/index.html