On 15/03/2009 12:00 AM, Edna Bell wrote:
Dear R Gurus:

I'm working slowly through "R Programming for Bioinformatics", which
is really interesting!

Anyway, my question now is:  what determines if a function is a
builtin vs. a closure, please?

Closure is the normal type of function written in R code. The other special types are built in to R; users can't create them except by modifying the R source code. For details see the R Internals manual.

Duncan Murdoch


For instance:
typeof(sqrt)
[1] "builtin"
typeof(mean)
[1] "closure"

Thanks,
Edna Bell

______________________________________________
R-help@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.

______________________________________________
R-help@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.

Reply via email to