Re: [R] leap year and order function

2011-01-31 Thread Toby Marthews
[r-help-boun...@r-project.org] On Behalf Of Dennis Murphy [djmu...@gmail.com] Sent: 31 January 2011 11:51 To: bill.venab...@csiro.au Cc: R-help@r-project.org Subject: Re: [R] leap year and order function Hi: There is an additional proviso: If the year is divisible by 100, then the next test is

Re: [R] leap year and order function

2011-01-31 Thread Dennis Murphy
365 > 365 366 365 365 > > > > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Bobby Lee > Sent: Monday, 31 January 2011 2:23 PM > To: R-help@r-project.org > Subject: [R] leap year and order function > &

Re: [R] leap year and order function

2011-01-30 Thread Bill.Venables
5 366 365 365 365 366 365 365 365 366 365 365 365 366 365 365 > -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Bobby Lee Sent: Monday, 31 January 2011 2:23 PM To: R-help@r-project.org Subject: [R] leap year and order function

[R] leap year and order function

2011-01-30 Thread Bobby Lee
im trying to write a for loop so that every leap year, the number of days becomes to 366 instead of 365. could someone help me out? and also, this set of data has 99.99s I set all the 99.99 ==NA. however, when im doing the order function to find the max value of that year, it still reads 99.99 as t