[R] Averaging uneven measurements by time with uneven numbers of measurements
Clint Bowman
clint at ecy.wa.gov
Thu May 5 22:14:17 CEST 2011
I'd be tempted to do a robust fit (loess?) to the data with a
relatively small span (I'm assuming that there are errors in the
measurements and some degree of smoothing is acceptable) then
predict the fit at a regular interval (e.g., every 30 minutes).
--
Clint Bowman INTERNET: clint at ecy.wa.gov
Air Quality Modeler INTERNET: clint at math.utah.edu
Department of Ecology VOICE: (360) 407-6815
PO Box 47600 FAX: (360) 407-7534
Olympia, WA 98504-7600
USPS: PO Box 47600, Olympia, WA 98504-7600
Parcels: 300 Desmond Drive, Lacey, WA 98503-1274
On Thu, 5 May 2011, Schatzi wrote:
> I have a new device that takes measurements anywhere from every second, to
> every 15 minutes (depending on changes). The matrix has a date, time and Y
> column (Y is the measurement). For three days it is 25,000 rows. How do I
> average the measurements by every 30 minutes so my matrix is 48 rows per
> day? I have been working on this and cannot figure out a simple method. Any
> ideas? Thank you.
>
> -----
> In theory, practice and theory are the same. In practice, they are not - Albert Einstein
> --
> View this message in context: http://r.789695.n4.nabble.com/Averaging-uneven-measurements-by-time-with-uneven-numbers-of-measurements-tp3499337p3499337.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
>
More information about the R-help
mailing list