[R] probably easy methods question

David Scott d.scott at auckland.ac.nz
Wed Sep 10 01:29:31 CEST 2008


On Tue, 9 Sep 2008, Edna Bell wrote:

> Dear R Gurus:
> I want to look at the code for the t.test function.  I did the following:
>
>> t.test
> function (x, ...)
> UseMethod("t.test")
> <environment: namespace:stats>
>> getAnywhere("t.test")
> A single object matching 't.test' was found
> It was found in the following places
>  package:stats
>  registered S3 method for t from namespace stats
>  namespace:stats
> with value
>
> function (x, ...)
> UseMethod("t.test")
> <environment: namespace:stats>
>> methods("t.test")
> [1] t.test.default* t.test.formula*
>
>   Non-visible functions are asterisked
>>
>
> Ok. Now what, please?  I'm sure it's really simple.
>
> Thanks,
> Edna Bell
>

getAnywhere(t.test.default)

David Scott


_________________________________________________________________
David Scott	Department of Statistics, Tamaki Campus
 		The University of Auckland, PB 92019
 		Auckland 1142,    NEW ZEALAND
Phone: +64 9 373 7599 ext 86830		Fax: +64 9 373 7000
Email:	d.scott at auckland.ac.nz

Graduate Officer, Department of Statistics
Director of Consulting, Department of Statistics



More information about the R-help mailing list