Guys,

I'd like to point out a behavior change in na.locf (and na.approx) from the zoo package between versions 1.6.3 and 1.6.4

If na.rm=T (it is by default) in 1.6.3 na.omit would be used to remove the leading NAa, in 1.6.4 na.trim is used instead. In zoo 1.6.4

tmp = zoo(as.matrix(1, ncol=1, nrow=100), 1:100)
colnames(tmp)="TEST"
class(coredata(tmp))
[1] "matrix"
colnames(tmp)
[1] "TEST"
colnames(na.locf(tmp))
NULL
class(coredata(na.locf(tmp)))
[1] "numeric"
class(tmp) = c("Test",class(tmp))
class(na.locf(tmp))
[1] "zoo"

Whilst with zoo 1.6.3 the univariate zoo series keep the matrix coredata and the colnames :(, it also kept the class of the original.

Unfortunately this breaks my code :(

Any particular motivation between this change? I'm downgrading to 1.6.3 for the time being :(

Cheers,

//Giuseppe



________________________________
---- MAKO ----
This email and any files transmitted with it are confide...{{dropped:17}}

