[R] Ordeing Zoo object

Gabor Grothendieck ggrothendieck at gmail.com
Mon Nov 22 20:56:39 CET 2010


On Mon, Nov 22, 2010 at 1:35 PM, Manta <mantino84 at libero.it> wrote:
>
> And how about if I want to order the series from the smallest to the largest
> value, keeping the date index in order to see when the values were
> predominantly negative etc...
>

If you just want to look at it in this order then:

as.data.frame(dat)[length(dat):1,,drop = FALSE]

-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com



More information about the R-help mailing list