Re: [R] still more dumb questions

From: Rolf Turner <r.turner_at_auckland.ac.nz>
Date: Fri, 25 Jul 2008 10:03:29 +1200

On 25/07/2008, at 9:58 AM, Edna Bell wrote:

> Hello.
>
> When I type in "median", I get the following:
>
>> median
> function (x, na.rm = FALSE)
> UseMethod("median")
> <environment: namespace:stats>
>>
>
> How do I look at the code, please?

It seems that median() is ``generic'' (although with only one --- the default --- ``method''.

Typing ``methods(median)'' shows this.

Typing ``median.default'' shows you the code for this default ``method''.

        cheers,

                Rolf Turner

######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}

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. Received on Thu 24 Jul 2008 - 22:07:00 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 24 Jul 2008 - 22:32:27 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive