[R] getMethod(s) and var.test

Jeff Miller jeffmiller at alphapoint05.net
Tue Oct 31 16:42:35 CET 2006


On second thought, sometimes you need the .default (as in your case and for
t.test) but not always...for aov you just need getAnywhere(aov)

Not sure why...

It seems the best choices to get package code are

1. body()
2. methods()
3. methods("packagename","default")
4. methods("packagename","mod")
5. getAnywhere(packagename)
6. getAnywhere(packagename.default)

Jeff 

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Benjamin Otto
Sent: Tuesday, October 31, 2006 10:15 AM
To: R-Help
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.



More information about the R-help mailing list