Re: [R] using complete.cases() with nested factors

2008-09-04 Thread Gabor Grothendieck
See ?subset and ?ave and try this: subset(DF, ave(year, year, FUN = length) == 12) On Thu, Sep 4, 2008 at 5:04 PM, Andrew Barr <[EMAIL PROTECTED]> wrote: > Hello, > > This maybe a newbie question. I have a dataframe that looks like the sample > at the bottom of the email. I have monthly precip

Re: [R] using complete.cases() with nested factors

2008-09-04 Thread hadley wickham
On Thu, Sep 4, 2008 at 4:19 PM, Ken Knoblauch <[EMAIL PROTECTED]> wrote: > Andrew Barr gmail.com> writes: >> This maybe a newbie question. I have a dataframe > that looks like the sample >> at the bottom of the email. I have monthly > precipitation data from several >> sites over several years.

Re: [R] using complete.cases() with nested factors

2008-09-04 Thread Ken Knoblauch
Andrew Barr gmail.com> writes: > This maybe a newbie question. I have a dataframe that looks like the sample > at the bottom of the email. I have monthly precipitation data from several > sites over several years. For each site, I need to extract years that have > a complete series of 12 mon