Message-ID: <49BD0470.2060008@stats.uwo.ca>
Date: 2009-03-15T13:36:48Z
From: Duncan Murdoch
Subject: builtin vs. closure
In-Reply-To: <2d1ebb110903142100h381a619aw43672f196d945d8b@mail.gmail.com>
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 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.