Skip to content
Prev 7100 / 15274 Next

xts / split time series issue

You can coerce back (assuming the data is coercible) using storage.mode<-

x <- xts(as.character(100), Sys.Date())
x
           [,1]
2010-12-13 "100"

storage.mode(x)
[1] "character"

storage.mode(x) <- "numeric"
storage.mode(x)
[1] "double"

x
           [,1]
2010-12-13  100

HTH
Jeff

On Mon, Dec 13, 2010 at 4:20 PM, Nick Torenvliet
<nick.torenvliet at gmail.com> wrote: