On Mar 31, 2010, at 8:35 AM, Luwis Tapiwa Diya wrote:
Dear R Users,
I have a question, how does one print an r function like t.test in R
(to get
the whole function and not just a summary of the environment)? For
example
if I type the following:
t.test
function (x, ...)
UseMethod("t.t
Hi Luwis,
this task is solved in the R Help Desk, see R News 6/4
http://cran.r-project.org/doc/Rnews/Rnews_2006-4.pdf
in short "t.test" is a S3-method and you can have a look at implemented
methods with
methods(t.test)
and then use e.g.
getAnywhere(t.test.default)
hth.
Luwis Tapiwa Diya
Dear R Users,
I have a question, how does one print an r function like t.test in R (to get
the whole function and not just a summary of the environment)? For example
if I type the following:
> t.test
function (x, ...)
UseMethod("t.test")
> print(t.test)
function (x, ...)
UseMethod("t.test")
3 matches
Mail list logo