[Rd] Why cant my S4 class have a slot named `C`?
Steve Lianoglou
mailinglist.honeypot at gmail.com
Tue Feb 21 18:25:52 CET 2012
Hi,
On Tue, Feb 21, 2012 at 11:54 AM, Martin Morgan <mtmorgan at fhcrc.org> wrote:
[snip]
> Hi Steve --
>
> args(new) shows that new has a single named argument Class. R's rules of
> partial matching mean that C matches Class before the unnamed "SVM", as in
>
> f = function(XXX=1, ...) XXX
> f(2, X=3) # returns 3
>
> so name your arg to new
[/snip]
[facepalm]
Jeez ... I totally knew that, too ... just wasn't putting 2 and 2
together, here.
Thanks for taking the time to point that out.
-steve
--
Steve Lianoglou
Graduate Student: Computational Systems Biology
| Memorial Sloan-Kettering Cancer Center
| Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact
More information about the R-devel
mailing list