look at zoo and roll mean On Thu, Aug 14, 2008 at 3:52 PM, William Pepe <[EMAIL PROTECTED]> wrote: > > Dear all. I have data that looks like this: > > Biller Cycle Jan Feb Mar Apr May JuneAB 1 100 150 150 200 300 450JL > 2 650 600 750 700 850 800JL 3 700 740 680 690 700 580IR > 1 455 400 405 410 505 550IR 4 600 650 700 750 650 680IR 5 > 100 150 120 130 140 190IR 9 600 640 630 625 680 690 > > For each biller and cycle, I want to determine the six months average for > Jan-Jun and also a 3-month moving average for Jan-Jun. > > If a cycle number is skipped such as cycle 1 for biller JL, that just means > there is no cycle 1 for biller JL. It's not missing data. > > Any help would be greatly appreciated. Thanks. > _________________________________________________________________ > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@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. >
-- 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 ______________________________________________ R-help@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.