outer fails with group generic operations on factors (PR#166)
Peter Dalgaard BSA
p.dalgaard@biostat.ku.dk
13 Apr 1999 20:03:01 +0200
ripley@stats.ox.ac.uk writes:
> Browse[1]> FUN
> .Primitive("!=")
>
> This _should_ launch Ops.factor, but does not.
>
> > "!="(A, B)
> [1] FALSE FALSE
> > get("!=")(A, B)
> Warning: "" not meaningful for factors
> [1] NA NA
>
Actually, it *does* launch Ops.factor, but it gets confused by garbage
in .Generic. The bug is this line in DispatchGroup:
sprintf(generic, "%s", CHAR(PRINTNAME(CAR(call))));
which presumably should rather look at the "op" arg.
I'll have a closer look.
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._