Displaying 1 result from an estimated 1 matches for "bit_obj".
Did you mean:
bigobj
2009 Dec 28
2
Ops method does not dispatch on either of two classes
I have defined boolean methods for bit and bitwhich objects, for example
|.bit <- function(e1,e2)
and
|.bitwhich <- function(e1,e2)
Both methods coerce their arguments to the respective class, however if I do something like
bit_obj | bitwhich_obj
then I get a warning
Warning message:
Incompatible methods ("|.bit", "|.bitwhich") for "|"
and none of the two methods is called. Instead the (internal) method for logicals seems to be called - not even coercing its arguments to logical. Same proble...