attributes loss with arithmetic...

Martin Maechler Martin Maechler <maechler@stat.math.ethz.ch>
Thu, 26 Feb 1998 10:31:36 +0100


>>>>> "Steve" == Steve Oncley <oncley@atd.ucar.edu> writes:

    Steve> During the last couple of months (at least) there has been a
    Steve> trickle of messages on R-help related to attributes (other than
    Steve> dim/dimnames) not being inherited.
    Steve> Example:
    Steve> 	x <- 1
    Steve> 	class(x) <- "test"
    Steve> 	class(x+1) [returns NULL, not "test"]

    Steve> I have not seen a response from anyone in the R-core about this
    Steve> issue.
Well, excuse us..
    Steve> Since our group uses locally-written code (in S+) that
    Steve> is object-oriented,  
    Steve> R is useless to us until this capability exists.
		^^^^^^^
pretty hard word;   
I understand however that you definitely want this working.

The reason, there was no answer is probably:
It is obviously something ``deep down in the bowels of the C code'' for R,
and "usually", these things are left to R&R for fixing.
On the other hand, Ross and Robert are always overloaded with work...

    Steve> Do any of you have this on your tasks-list, or should we
    Steve> <attempt> to add attribute inheriting on our own?

If you feel knowledgable to do it in C, we'll be more than glad for your
contribution... !

Martin Maechler <maechler@stat.math.ethz.ch>			<><
Seminar fuer Statistik, ETH-Zentrum SOL G1;	Sonneggstr.33
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
http://www.stat.math.ethz.ch/~maechler/


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