Skip to content
Prev 51388 / 63424 Next

[Bioc-devel] For integer vectors, `as(x, "numeric")` has no effect.

Re: coerce() methods.

Important to realize that as() does not call selectMethod() in the standard way, but restricts inheritance to the first argument:
               asMethod <- selectMethod("coerce", sig, optional = TRUE, 
                  c(from = TRUE, to = FALSE), fdef = coerceFun, 
A valid comparison would have to take account of this.

Once the method has been _correctly_ selected, it is stored in the internal table and therefore  will be returned by .findMethodInTable without repeating a search.

John
On Dec 25, 2015, at 11:51 PM, Herv? Pag?s <hpages at fredhutch.org> wrote: