Friday 24 July 2015

R: Loop functions

R comes with number of loop functions, to make users task simpler. Following are the loop functions with brief description. In subsequent posts, I am going to explain, each in detail.

lapply : Loop over a list and evaluate a function on each element.
sapply : Same as lapply, but user friendly version of lapply
apply : Apply a function over the margins of array
tapply : Applay a function over subset of vectors
mapply : Multi variate version of apply


Prevoius                                                 Next                                                 Home

No comments:

Post a Comment