From h.wickham at gmail.com  Thu Jul 11 12:59:10 2013
From: h.wickham at gmail.com (Hadley Wickham)
Date: Thu, 11 Jul 2013 12:59:10 +0200
Subject: [Rd] does subset.data.frame need to accept extra arguments?
In-Reply-To: <51DA7B09.3000606@gmail.com>
References: <CAJoaRhbJvHvrzTDdCDh5TNTDWLcBRZ6HTOPguAg=GfkdZoc63g@mail.gmail.com>
	<51DA7B09.3000606@gmail.com>
Message-ID: <CABdHhvFxZ13LfhHUbYPsMVSaSCvfE6zz9kLEx628i+0ZTv4QSA@mail.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/



[Rd] does subset.data.frame need to accept extra arguments?
Hadley Wickham