Is setOldClass the solution?
e.g.
x <- list()
class(x) <- "foo"
setGeneric("bar", function(x) "bar generic")
setOldClass("foo")
setMethod("bar", "foo", function(x) "bar foo")
bar(x)
On 7 October 2014 10:00, Dario Strbenac wrote:
> Hello,
>
> I am writing an interface to some functions from the
Hello,
I am writing an interface to some functions from the CRAN package pamr, which
is poorly written.
I have a S4 method I declared with setMethod. I'd like to provide a signature
of "pamrtrained" which is the class of object that training creates. The last
two lines of code of pamr.train ar