functools extends functional programming in R. It has three main goals:
Add support to the usual higher order functional suspects (Map, Reduce, Filter, etc.) without extending any core R objects.
Use a consistent API to access different functionals in base R such as 'lapply' or 'apply'.
Provide blazing fast performance for in-memory data by writing key pieces in C++ and options for parallelization, where possible.
functools achieves these goals through three main types of function design patterns:
Closures (functions that take data and return functions)
Functionals (functions that take functions and return data)
Function Operators (functions that take functions and return functions)
To learn more about functools, start with the vignettes:
browseVignettes(package = "functools")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.