From p.dalgaard@biostat.ku.dk  Thu Nov 19 17:53:19 1998
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 19 Nov 1998 18:53:19 +0100
Subject: list assignment
In-Reply-To: Paul Gilbert's message of Thu, 19 Nov 1998 12:13:27 -0500
References: <98Nov19.121657est.13464@mailgate.bank-banque-canada.ca>
Message-ID: <x2d86jy3g0.fsf@blueberry.kubism.ku.dk>

Paul Gilbert <pgilbert@bank-banque-canada.ca> writes:

> There appears to be a problem with name matching in list assignment:
> 
> Version 0.63.0  (November 14, 1998)
> ...
> > r <- list()
> > r$forecast.cov.trend <- 1:12
> > r$forecast.cov.zero <- 1:12
> > r$forecast.cov <- 1:2
> > length(r$forecast.cov)
> [1] 0                                   #should be 2
> >

Odd, and clearly a bug. Probably rather in indexing rather than
assigment, though:

> a<-list(1,2,3)
> names(a)<-c("aa","ab", "a")
> a$a
NULL
> a[["a"]]
[1] 3



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


list assignment
Peter Dalgaard BSA