Re: [R] Ordeing Zoo object

2010-11-22 Thread Manta
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... Thanks, Marco -- View this message in context: http://r.789695.n4.nabble.com/Ordeing-Zoo-object-tp955868p3054192.html

Re: [R] Ordeing Zoo object

2010-11-22 Thread Gabor Grothendieck
On Mon, Nov 22, 2010 at 1:35 PM, Manta mantin...@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:

[R] Ordeing Zoo object

2009-12-08 Thread Bogaso
Hi all, I would like to ask how to order a Zoo object? Consider following code dat - zooreg(rnorm(5), as.yearmon(as.Date(2001-01-01)), frequency=12) dat Jan 2001 Feb 2001 Mar 2001 Apr 2001 May 2001 -0.8916124 -0.4516505 1.1305884 -1.4881309 0.3703734 Here I want to order from

Re: [R] Ordeing Zoo object

2009-12-08 Thread Achim Zeileis
On Tue, 8 Dec 2009, Bogaso wrote: Hi all, I would like to ask how to order a Zoo object? Consider following code dat - zooreg(rnorm(5), as.yearmon(as.Date(2001-01-01)), frequency=12) dat Jan 2001 Feb 2001 Mar 2001 Apr 2001 May 2001 -0.8916124 -0.4516505 1.1305884 -1.4881309