Functions! (and their scoping)
In a previous post, we covered part of the R language control flow, the cycles or loop structures. In a subsequent one, we showed how to avoid ‘looping’ by means of functions that act on compound data in repetitive ways (the apply family of functions). Here, we introduce the notion of function from the R programmer point of view and illustrate the range of action that functions have within the R code (‘scope’). Read more [first published on Datacamp, August 20, 2015]