Writing Loops and Functions in R
Justin Charles Touchon · 2021
Abstract Learning how to write your own functions can seem like a daunting task, but Chapter 10 demystifies this process and teaches readers how to think about when and why this is an important thing to do. Beginning with simple functions and progressing to complex data simulations, writing functions is useful skill that will greatly expand the horizons of even relatively beginner R users.