Hi!

Trying to reproduce some examples from "Programming with Data" page 341.
Can not reproduce it neither on R1.8.1. nor R1.9.0devel?


library(methods)
setClass("track",representation(x="numeric",y="numeric"))

setMethod("["
          ,"track"
          ,function(x,...,drop=T){
            track([EMAIL PROTECTED],[EMAIL PROTECTED])
          }
          )

In method for function "[": Expanding the signature to
include omitted arguments in definition: i = "missing",
j = "missing"
Error in .MakeSignature(new("signature"), def, signature) :
        The names in signature for method (x, , ) don't match function's arguments (x, 
i, j, drop)

The same....
setReplaceMethod("[","track"
                 ,function(x,...,value)
                 {
                  [EMAIL PROTECTED](value,"numeric") 
                 }
                 )


Please Help.
Eryk.

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to