Skip to content
Back to formatted view

Raw Message

Message-ID: <CABdHhvFxZ13LfhHUbYPsMVSaSCvfE6zz9kLEx628i+0ZTv4QSA@mail.gmail.com>
Date: 2013-07-11T10:59:10Z
From: Hadley Wickham
Subject: does subset.data.frame need to accept extra arguments?
In-Reply-To: <51DA7B09.3000606@gmail.com>

> 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.

That wouldn't be a problem if the check was implemented in
subset.data.frame, would it?

Hadley

--
Chief Scientist, RStudio
http://had.co.nz/