Skip to content
Back to formatted view

Raw Message

Message-ID: <98Nov19.121657est.13464@mailgate.bank-banque-canada.ca>
Date: 1998-11-19T17:13:27Z
From: Paul Gilbert
Subject: list assignment

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