How can I print the definition of a function that is in the base package? for example, if I type: which.min I get function (x) .Internal(which.min(x)) <environment: namespace:base> How can I see the definition of this function? Thanks.
listing functions in base package
4 messages · Kingsford Jones, Fuchs Ira
see https://stat.ethz.ch/pipermail/r-help/2008-January/151694.html hth, Kingsford Jones
On Wed, Mar 4, 2009 at 7:30 PM, Fuchs Ira <irafuchs at gmail.com> wrote:
How can I print the definition of a function that is in the base package? for example, if I type: which.min I get function (x) .Internal(which.min(x)) <environment: namespace:base> How can I see the definition of this function? Thanks.
______________________________________________ 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.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090304/f0ed7e2d/attachment-0002.pl>
On Wed, Mar 4, 2009 at 8:40 PM, Fuchs Ira <irafuchs at gmail.com> wrote:
So functions in the base package are all written in C?
No, a large proportion are written in R and the code can be seen in the console by typing the function name. C is generally used where speed is a concern. Kingsford
Thanks. On Mar 4, 2009, at 10:26 PM, Kingsford Jones wrote: see https://stat.ethz.ch/pipermail/r-help/2008-January/151694.html hth, Kingsford Jones On Wed, Mar 4, 2009 at 7:30 PM, Fuchs Ira <irafuchs at gmail.com> wrote:
How can I print the definition of a function that is in the base package? for example, if I type: which.min I get function (x) .Internal(which.min(x)) <environment: namespace:base> How can I see the definition of this function? Thanks.
______________________________________________ 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.