Browsing index pages (2 articles)
↧
How and why to return functions in R
One of the advantages of functional languages (such as R) is the ability to create and return functions “on the fly.” We will discuss one good use of this capability and what to look out for when...
View ArticleUsing closures as objects in R
For more and more clients we have been using a nice coding pattern taught to us by Garrett Grolemund in his book Hands-On Programming with R: make a function that returns a list of functions. This...
View Article
Browsing index pages (2 articles)