search for: hass3method

Displaying 1 result from an estimated 1 matches for "hass3method".

Did you mean: hasmethod
2007 Nov 14
1
test for existance of a method for given class
Dear All, I want to test whether a method exists for given object. For example, whether a function "deviance" is defined for an object of the "lm" class. My imperfect understanding leads me to think something like hasMethod("deviance", object) hasMethod("deviance", "lm") existsMethod("deviance", signature(class="lm"))