Re: [R] How to monthly,daily,yearly average

2009-03-11 Thread Gabor Grothendieck
Here is an example. See the three vignettes in zoo: vignette("zoo") and R News 4/1 for info on dates. # assume this input Lines <- "Date Time Value 01/01/08 00:00:00 1 01/01/08 00:30:00 2 01/01/08 01:00:00 3 01/01/08 01:30:00 4 01/01/08 02:00:00 5 01/01/08 02:30:00 6 01/01/08 03:00:00 7 01/01/08

Re: [R] How to monthly,daily,yearly average

2009-03-11 Thread Tammy Ma
Check as.Date > Date: Wed, 11 Mar 2009 06:25:44 -0700 > From: qflic...@yahoo.com > To: r-help@r-project.org > Subject: [R] How to monthly,daily,yearly average > > Sorry, this is my first time to post. > > I have a big data set: first colume is date (ex: 2008-2-150, t

[R] How to monthly,daily,yearly average

2009-03-11 Thread Qianfeng Li
Sorry, this is my first time to post. I have a big data set: first colume is date (ex: 2008-2-150, the second is time (10:30:00), and the following columes are variaty measurement data. Every 30 min, I have one data. I want to find an effecient way to calculate the hourly, daily, monthly and