Skip to content
Prev 7922 / 15274 Next

na.omit.xts unsupported type error

Dang!

 > Q.x[,1] <- as.numeric(Q.x[,1])
 > na.omit(Q.x[,1])
Error in na.omit.xts(Q.x[, 1]) : unsupported type

That is surprising.  Any ideas why I cannot coerce it to numeric?

 > Z.x <- xts(as.numeric(Q.x[,1]), index(Q.x))
 > Z.x
                    [,1]
1977-01-05  0.006571315
1977-01-06 -0.012214300
1977-01-10 -0.010448345
1977-01-12 -0.012253432
1977-01-17 -0.004359331
1977-01-19  0.001865568

That works.  So I have no crises, but it is odd.

W
On 17/05/11 12:02, Joshua Ulrich wrote: