Dimitris, I like your version better than the one-line commands such as methods(). It appears that your version gives ALL of the code.
Jeff -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dimitris Rizopoulos Sent: Tuesday, October 31, 2006 11:12 AM To: Benjamin Otto Cc: [email protected] Subject: Re: [R] getMethod(s) and var.test 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" <[EMAIL PROTECTED]> To: "R-Help" <[email protected]> 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]] > > ______________________________________________ > [email protected] 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 ______________________________________________ [email protected] 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. ______________________________________________ [email protected] 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.
