Re: [Rd] Why cant my S4 class have a slot named `C`?

From: Steve Lianoglou <mailinglist.honeypot_at_gmail.com>
Date: Tue, 21 Feb 2012 12:25:52 -0500

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

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue 21 Feb 2012 - 17:28:24 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 21 Feb 2012 - 19:30:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive