From pgilbert@bank-banque-canada.ca  Thu Nov 19 17:13:27 1998
From: pgilbert@bank-banque-canada.ca (Paul Gilbert)
Date: Thu, 19 Nov 1998 12:13:27 -0500
Subject: list assignment
Message-ID: <98Nov19.121657est.13464@mailgate.bank-banque-canada.ca>

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
>

But note that this works correctly:
>  r <- list()
> r$forecast.cov.trend <- 1:12
> r$forecast.cov <- 1:2
> length(r$forecast.cov)
[1] 2
>

And also this works correctly:
> r <- list()
> r$forecast.cov <- 1:2
> r$forecast.cov.trend <- 1:12
> r$forecast.cov.zero <- 1:12
> length(r$forecast.cov)
[1] 2
> length(r$forecast.cov.trend)
[1] 12
> length(r$forecast.cov.zero)
[1] 12
>

Paul Gilbert

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
Paul Gilbert