October 2017
Beginner to intermediate
236 pages
7h 38m
English
There are many functions available in different libraries for doing repetition tasks, such as, plyr, dplyr, and the family of the apply() functions such as apply(), sapply(), and lapply(). These functions are alternatives of a for loop. In R, a for loop is slower than any one of these alternative functions.
For the recursive call of a function, do.call() is one of the popular choices, but this also works just like repetition tasks.