By the end of today’s session, you will be able to:
A function factory is a function that makes (returns) functions
Factory made function are manufactured functions
Function factories are powered by three features of the R language:
R has first-class functions
R functions capture the environment in which they are created
R functions create a new execution environment