p.dalgaard@biostat.ku.dk
2000-Oct-31 11:16 UTC
[Rd] Printing list elements w/attributes (PR#715)
This looks wrong {spotted when looking at the confidence interval in
unclass(t.test(...))}:
l<-list(a=10)
attr(l$a,"xx")<-23
l
R gets
$a
[1] 10
$aattr(,"xx")
[1] 23
Splus has
$a:
[1] 10
attr($a, "xx"):
[1] 23
(Linux/RedHat6.2/ix86, R1.1.1 and current R-devel)
--
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._