[R] Calculation of daily max

From: <Augusto.Sanabria_at_ga.gov.au>
Date: Tue 17 Jan 2006 - 15:47:19 EST

Good day everyone.

I have a large dataset of 1 min wind speeds covering 5 years.

How can I make an array of maximum daily values?

The vectors I have are: 'VDATE' with dates in format '%Y-%m-%d' (like '1992-10-28') and 'WS' with wind speed data
(same number of elements as VDATE).

I want an array with 2 columns: Max daily wind speed and corresponding day.

Has anyone got an elegant way of doing that?
(My background is in C++ I would tend to use loops
but that is not very elegant in R, isn't it?)


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 Tue Jan 17 16:02:16 2006

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