From mailinglist.honeypot at gmail.com  Tue Feb 21 18:25:52 2012
From: mailinglist.honeypot at gmail.com (Steve Lianoglou)
Date: Tue, 21 Feb 2012 12:25:52 -0500
Subject: [Rd] Why cant my S4 class have a slot named `C`?
In-Reply-To: <4F43CC3D.5050508@fhcrc.org>
References: <CAHA9McNhzBcZy6PkeSmV8QSb9apaq6PZc3a5-TG+uiqvnPxwig@mail.gmail.com>
	<4F43CC3D.5050508@fhcrc.org>
Message-ID: <CAHA9McN_KLT4kVc5fLBEbMs3qGFM7zDypM87Cr0Yqz2g0tftGA@mail.gmail.com>

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



[Rd] Why cant my S4 class have a slot named `C`?
Steve Lianoglou