[R] 15-min mean values

From: <Augusto.Sanabria_at_ga.gov.au>
Date: Thu 02 Feb 2006 - 16:30:50 EST

Good day everyone,

I want to use zoo(aggregate) to calculate 15-min mean values from a wind dataset which has 1-min values. The data I have looks like this:

     vector VDATE           vector WS
1   1998-10-22:02:11          12.5
2   1998-10-22:02:12          10.1
3   1998-10-22:02:13          11.2
4   1998-10-22:02:14          10.5
5   1998-10-22:02:15          11.5

.
.
.
n 2005-06-30:23:59 9.1

I want to use:

aggregate(zoo(WS),'in 15-min intervals',mean)

How do you specify 'in 15-min intervals' using vector VDATE? The length of VDATE cannot be changed, otherwise it would be a trivial problem because I can generate a 15-min spaced vector using 'seq'.

Am I missing something?

Thanks a lot,

Augusto



Augusto Sanabria. MSc, PhD.
Mathematical Modeller
Risk Research Group
Geospatial & Earth Monitoring Division
Geoscience Australia (www.ga.gov.au)
Cnr. Jerrabomberra Av. & Hindmarsh Dr.
Symonston ACT 2609
Ph. (02) 6249-9155

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Feb 02 16:39:43 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:16 EST