search for: pamrtrained

Displaying 1 result from an estimated 1 matches for "pamrtrained".

2014 Oct 07
1
S4 Method Dispatch for Class Defined as Attribute
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 are : class(junk) = "pamrtrained" junk How can I dispatch on these kinds of objects, other than making the signature be "ANY" and checking the class inside the S4 method...