[R] getMethod(s) and var.test

Dimitris Rizopoulos dimitris.rizopoulos at med.kuleuven.be
Tue Oct 31 17:11:40 CET 2006


you may try something like this:

body.fun <- lapply(methods(var.test), get, envir = 
environment(var.test), mode = "function")
names(body.fun) <- methods(var.test)
body.fun


I hope it helps.

Best,
Dimitris

----
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/(0)16/336899
Fax: +32/(0)16/337015
Web: http://med.kuleuven.be/biostat/
     http://www.student.kuleuven.be/~m0390867/dimitris.htm


----- Original Message ----- 
From: "Benjamin Otto" <b.otto at uke.uni-hamburg.de>
To: "R-Help" <r-help at stat.math.ethz.ch>
Sent: Tuesday, October 31, 2006 4:15 PM
Subject: [R] getMethod(s) and var.test


> Hi,
>
>
>
> How do I retrieve the var.test() function code? I had a similar 
> problem once
> before with another function but getMethods() solved the problem 
> then. Now I
> tried several combinations for var.test() without success.
>
>
>
> Regards
>
>
>
> benjamin
>
>
>
> --
> Benjamin Otto
> Universitaetsklinikum Eppendorf Hamburg
> Institut fuer Klinische Chemie
> Martinistrasse 52
> 20246 Hamburg
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
> 


Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm



More information about the R-help mailing list