[R] still more dumb questions

Rolf Turner r.turner at auckland.ac.nz
Fri Jul 25 00:03:29 CEST 2008


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



More information about the R-help mailing list