Skip to content

tseries and xts - time indexing in an easier way?

2 messages · Zhang, Ivan, Jeff Ryan

#
Ivan,

xts requires ISO 8601 because it is the only agreed upon format that
is unambiguous in its definition.

You might be better of using zoo with yearmon.  While you'll lose the
ISO style subsetting, it seems like that isn't an issue now anyway.
The other advantage to xts is speed (as much is done with C code
internally).  For monthly data in finance this wouldn't seem to be of
much value though.  Since your series are likely not very long.

You could also use strptime or similar to format your 'request' string
into something along the lines if ISO.

HTH
Jeff

On Thu, Dec 17, 2009 at 12:46 PM, Zhang, Ivan
<ivan.zhang at bankofamerica.com> wrote: