Skip to content
Prev 41667 / 398500 Next

expressing functions

Perhaps what should be added to the previous answers is
that you can find out where the real work is done like
this:

require(ctest)
t.test
methods(t.test)
ctest:::t.test.default
ctest:::t.test.formula

If the class of the first argument to t.test is formula
then t.test.formula gets invoked so that's where the
real work is done; otherwise, t.test.default
gets invoked so that's where the real work is done.

---
Remington, Richard wrote: