Re: [R] Changing the order of months within a year

2013-02-12 Thread Clint Bowman
I'm sure the OP has reasons to reorder the months as shown but his data seems to argue that he shouldn't split the wet season (Oct - Apr) but should, instead, tack the 1972 months (Jan - Aug after the 1971 months (Sep - Dec). Clint Clint BowmanINTERNET: cl...@ecy.wa.

Re: [R] Changing the order of months within a year

2013-02-12 Thread David Winsemius
On Feb 11, 2013, at 10:09 PM, nick pardikes wrote: > I have data that looks like below and I would like to re-order the values > within the "date" column. I would like to have each year organized like so: > > Sep-71 > Oct-71 > Nov-71 > Dec-71 > Jan-71 > Feb-71 > Mar-71 > Apr-71 > May-71 > Jun-7

Re: [R] Changing the order of months within a year

2013-02-12 Thread arun
7 65.6 37.9 #23 castlepeak Jul-72 1972 0.000 74.25806 43.45161 #24 castlepeak Aug-72 1972     0.2258065 73.35484 43.03226 A.K. ----- Original Message - From: nick pardikes To: "r-help@R-project.org" Cc: Sent: Tuesday, February 12, 2013 1:09 AM Subject: [R] Cha

Re: [R] Changing the order of months within a year

2013-02-12 Thread Rui Barradas
Hello, Maybe there's some date trick, but I think the following will do the job. dat <- read.table(text = " site date year precipitation temp_max temp_min 1 castlepeak Jan-71 197126.2903226 38.29032 18.06452 2 castlepeak Feb-71 1971 9.1071429 39.60714 17.5 3 castlepea

[R] Changing the order of months within a year

2013-02-11 Thread nick pardikes
I have data that looks like below and I would like to re-order the values within the "date" column. I would like to have each year organized like so: Sep-71 Oct-71 Nov-71 Dec-71 Jan-71 Feb-71 Mar-71 Apr-71 May-71 Jun-71 Jul-71 Aug-71 Sep-72 Oct-72 etc... Is there any way I can order the column i