I am trying to define the "c" method for an object I created.
something like
setMethod("c",
signature(...),
definition=function (...) {
myObject = list(...)[[1]]
myObject@mySlot=lapply(list(...), FUN = function(x) slot(x, "mySlot"))
return(myObject)
}
)
The problem is that I cannot define the class of ... so that the dispatching is done properly. Any idea?