Hello,
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 monthly precipitation values, while
Andrew Barr wabarr at 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
On Thu, Sep 4, 2008 at 4:19 PM, Ken Knoblauch [EMAIL PROTECTED] wrote:
Andrew Barr wabarr at 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.
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
4 matches
Mail list logo