[R] ggplot cumsum refined question (?)
    stephen sefick 
    sas0025 at auburn.edu
       
    Tue Oct  6 17:13:17 CEST 2009
    
    
  
The date time stamp is not the same?
data.frame(as.chron(Cumul[,"date_time"]), DF[,"date_time"])
On Tue, Oct 6, 2009 at 9:31 AM, hadley wickham <h.wickham at gmail.com> wrote:
>> It is much easier to do you data preparation before plotting.
>>
>> Cummul <- ddply(subset(DF, precipitation!="NA"), "gauge_name",
>> function(x){
>>        x$Cummul <- cumsum(x$precipitation)
>>        x
>> })
>
> With a little less typing:
>
> Cummul <- ddply(subset(DF, precipitation!="NA"), "gauge_name", transform,
>  Cummul = cumsum(precipitation))
>
> Hadley
>
> --
> http://had.co.nz/
>
> ______________________________________________
> 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.
>
-- 
Stephen Sefick
Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods.  We are mammals, and have not exhausted the
annoying little problems of being mammals.
								-K. Mullis
    
    
More information about the R-help
mailing list