Skip to content

newbie Question on Generic and Method

2 messages · Laura Smith, Greg Snow

#
The generic is what the user calls, the method is what the generic calls.

For example, the "summary" function is a generic function, when you issue a command like summary(x) then the generic function looks at what type of object x is and calls the appropriate method which might be the summary.lm function, or the summary.default function (which are methods).