Re: [R] Ops method does not dispatch on either of two classes

2009-12-31 Thread Jens Oehlschlägel
Thanks Brian, > This is as documented on the help page for Ops (the page in base, not > the one in Methods) which is linked from ?"|". For background you > should also read the reference on that help page. Unfortunately I have no access to that book. > You are wrong in asserting that the inte

Re: [R] Ops method does not dispatch on either of two classes

2009-12-30 Thread Prof Brian Ripley
This is as documented on the help page for Ops (the page in base, not the one in Methods) which is linked from ?"|". For background you should also read the reference on that help page. You are wrong in asserting that the internal method is 'for logicals': please do study the help page. It c

[R] Ops method does not dispatch on either of two classes

2009-12-28 Thread Jens Oehlschlägel
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: Incompa