Re: [R] cumsum output

2010-05-10 Thread Felipe Carrillo
th.ethz.ch >Sent: Mon, May 10, 2010 2:33:03 PM >Subject: Re: [R] cumsum output > >It is working correctly,  You have NAs in your data, so you get NAs in the >cumsum. > > >On Mon, May 10, 2010 at 5:09 PM, Felipe Carrillo >wrote: > >Hi: Thanks to Dennis and Fernando

Re: [R] cumsum output

2010-05-10 Thread jim holtman
It is working correctly, You have NAs in your data, so you get NAs in the cumsum. On Mon, May 10, 2010 at 5:09 PM, Felipe Carrillo wrote: > Hi: Thanks to Dennis and Fernando for your help reordering the levels. > Now I have a different issue: > I am trying to get the cumulative weekly values usi

[R] cumsum output

2010-05-10 Thread Felipe Carrillo
Hi: Thanks to Dennis and Fernando for your help reordering the levels. Now I have a different issue: I am trying to get the cumulative weekly values using cumsum and it appears to output the wrong values. Here's my dataset: winter <-  structure(list(week = c(26L, 27L, 28L, 29L, 30L, 31L, 32L, 33L