Skip to content
Prev 8935 / 15274 Next

print an xts object in reverse order

You can't.

xts enforces time order - if it didn't it would be nearly useless.

If you really need to reverse the order, you should think twice about
it. If upon further consideration you still need it reversed, you can
coerce to something else to accommodate.

rev(coredata(x))
rev(as.matrix(x)

or

rev(as.zoo(x))

The latter is strange to me, as it reverses the underlying series, but
not the dates.  Sort of alluding to the 'do you really want to do
this...'

Jeff
On Tue, Nov 15, 2011 at 5:14 PM, Chris de Bleu <blue2bleu at yahoo.fr> wrote: