Skip to content
Prev 46188 / 63461 Next

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

On 13-07-07 11:09 PM, Peter Meilstrup wrote:
It needs to have ... in the formal argument list because the generic 
subset() does.

It could enforce a run-time warning that some arguments were being 
skipped (by testing length(list(...)) for example), but then NextMethod 
might fail, in a case where an object has a complicated class vector.

This is basically a limitation of the S3 class system.  The S4 system 
can do much more careful checking.

Duncan Murdoch