list assignment
Paul Gilbert
pgilbert@bank-banque-canada.ca
Thu, 19 Nov 1998 12:13:27 -0500
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._