Master functions and discover how to write functional programs in R. In this book, updated for R 4, you'll learn to make your functions pure by avoiding side effects, write functions that manipulate other functions, and construct complex functions using simpler functions as building blocks.
In Functional Programming in R 4, you'll see how to replace loops, which can have side-effects, with recursive functions that can more easily avoid them...