[R] listing functions in base package

Kingsford Jones kingsfordjones at gmail.com
Thu Mar 5 04:44:18 CET 2009


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.
>>
>
>




More information about the R-help mailing list