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 schrieb:
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")
<environment: namespace:stats>
print(t.test)
function (x, ...)
UseMethod("t.test")
<environment: namespace:stats>
I don't get the entire function printed.
Kind regards,
--
Eik Vettorazzi
Institut für Medizinische Biometrie und Epidemiologie
Universitätsklinikum Hamburg-Eppendorf
Martinistr. 52
20246 Hamburg
T ++49/40/7410-58243
F ++49/40/7410-57790
--
Pflichtangaben gemäß Gesetz über elektronische Handelsregister und
Genossenschaftsregister sowie das Unternehmensregister (EHUG):
Universitätsklinikum Hamburg-Eppendorf
Körperschaft des öffentlichen Rechts
Gerichtsstand: Hamburg
Vorstandsmitglieder:
Prof. Dr. Jörg F. Debatin (Vorsitzender)
Dr. Alexander Kirstein
Joachim Prölß
Prof. Dr. Dr. Uwe Koch-Gromus
______________________________________________
R-help@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.