[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-devel
Subject:    [Rd] Printing list elements w/attributes (PR#715)
From:       p.dalgaard () biostat ! ku ! dk
Date:       2000-10-31 11:16:52
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic