[R] looking at a function's code
Duncan Murdoch
murdoch at stats.uwo.ca
Mon Jul 16 14:22:49 CEST 2007
On 16/07/2007 8:02 AM, Walter Paczkowski wrote:
> Good morning,
>
> I'd like to look at the code for the R function head. When I type just the word head, I get back
>
> function(x, ...)
> UseMethod("head")
> <environment: namespace:utils>
>
>
> I expected to see several lines of R code. Any suggestions?
Even though it's not very informative, that really is the source for
that function. For instructions on how to see the more useful stuff,
see Uwe Ligges' article in the Oct 2006 R News (available at
http://cran.r-project.org/doc/Rnews/Rnews_2006-4.pdf).
Duncan Murdoch
More information about the R-help
mailing list