Tag: overloading

  • Fooling R’s Method Dispatch

    Fooling R’s Method Dispatch

    6 I am looking for an example where a dot in a function name causes R’s Method Dispatch to pick the wrong function. A natural candidate seems to be the builtin function t.test(), which should be confused with t() when applied to an object of class "test". Strangely, however, the following code actually calls the…