analyze subsample of dataframe
x$judy[x$year == 2004] <- x$judy[x$year == 2004] - 1
On Tue, Sep 16, 2008 at 6:02 PM, T.D.Rudolph <prairie.picker at gmail.com> wrote:
Hi there, I'm dealing with a pretty big dataset (~22,000 entries) with numerous entries for every day over a period of several years. I have a column "judy" (for Julian Day) with 0 beginning on Jan. 1st of every new year (I want to compare tendencies between years). However, in order to control for a leap year (2004), I simply need to subtract 1 from every judy value for the year 2004 (without altering judy values from other years!). What is the most effective way of going about this? Can I integrally subset within a function of some form? Merci Tyler -- View this message in context: http://www.nabble.com/analyze-subsample-of-dataframe-tp19520470p19520470.html Sent from the R help mailing list archive at Nabble.com.
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve?