[R] What is a 'closure'?

R. Michael Weylandt michael.weylandt at gmail.com
Thu Jan 19 20:51:15 CET 2012


http://www.lemnica.com/esotericR/Introducing-Closures/

Any function you work with will be a closure -- primitives are
built-in functions that users can't create. (without source editing &
recompiling R) E.g. the function c() (type it without parentheses at
the prompt to see its "code")

Let me know if I can explain more,

Michael

On Thu, Jan 19, 2012 at 2:45 PM, Ajay Askoolum <aa2e72e at yahoo.co.uk> wrote:
> The "R Language Definition" at http://cran.r-project.org/doc/manuals/R-lang.html states in the following section
>
> 4.3.2 Argument matching
> This subsection applies to closures but not to primitive functions.
>
> What are 'closures'?
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list