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