Skip to content
Prev 46196 / 63461 Next

does subset.data.frame need to accept extra arguments?

On 13-07-11 12:59 PM, Hadley Wickham wrote:
Suppose the class vector is c("myclass", "data.frame").  Then 
subset.myclass would be called first if it existed.  It might do some 
simple computation and then use NextMethod.  It should not need to know 
that it is calling subset.data.frame next, so it will pass all of its 
arguments along, possibly including some that subset.data.frame should 
ignore.

Duncan Murdoch