Skip to content
Back to formatted view

Raw Message

Message-ID: <AANLkTim2J4kcf9o-18Nd_K4FsFw_OEXyw-kVK4fCSaTX@mail.gmail.com>
Date: 2010-10-06T00:21:20Z
From: Vinh Nguyen
Subject: args() and body() equivalents for S4 methods?
In-Reply-To: <AANLkTinTuQs8RoWADcYS5oCy+e+7KXACYTRO8=8Jj-F1@mail.gmail.com>

On Tue, Oct 5, 2010 at 4:45 PM, Thomas Lumley <tlumley at uw.edu> wrote:
> You could define
>
> args4<-function(generic, signature) args(getMethod(generic,signature))
> and
> body4<-function(generic, signature) body(getMethod(generic,signature))
>
> or use selectMethod() instead of getMethod() if you want to find
> inherited methods.
>
> ? -thomas

Thanks Professor Lumley, this is sufficient.