From p.dalgaard@biostat.ku.dk  Tue Apr 13 19:03:01 1999
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 13 Apr 1999 20:03:01 +0200
Subject: outer fails with group generic operations on factors (PR#166)
In-Reply-To: ripley@stats.ox.ac.uk's message of "Tue, 13 Apr 1999 19:29:17 +0200"
References: <199904131729.TAA18570@biostat.ku.dk>
Message-ID: <x2g164gzze.fsf@blueberry.kubism.ku.dk>

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


outer fails with group generic operations on factors (PR#166)
Peter Dalgaard BSA