Cited from the Book Advanved R
In S4, it’s the callNextMethod that (surprise!) is used to call the next method. It figures out which method to call by pretending the current method doesn’t exist, and looking for the next closest match.
callNextMethod is the most specific method that’s responsible for ensuring that the more generic methods are called.
No comments:
Post a Comment