[R-SIG-Finance] xts and na.omit "unsupported type"

Fabrizio Pollastri f.pollastri at inrim.it
Thu Dec 10 15:12:13 CET 2009


Hello,
I have to remove NAs from a logical xts, but I get the error:

Error in na.omit.xts(x > y) : unsupported type

Example code:

library(xts)
x = xts(1:10,as.Date(1:10))
y = xts(c(NA,9:1),as.Date(1:10))
na.omit(x > y)

What I am missing?

Kind regards,
Fabrizio Pollastri



More information about the R-SIG-Finance mailing list