monitor_timeAverage: Calculate Time Averages

View source: R/monitor_timeAverage.R

monitor_timeAverageR Documentation

Calculate Time Averages

Description

This function extracts the data dataframe from ws_monitor object and renames the 'datetime' column so that it can be processed by the openair package's timeAverage() function. (See that function for details.)

Usage

monitor_timeAverage(ws_monitor, ...)

Arguments

ws_monitor

ws_monitor object

...

additional arguments to be passed to openair::timeAverage()

Value

A ws_monitor object with data that have been proccessed by openair::timeAverage().

Examples

library(PWFSLSmoke)

C_V <- monitor_subset(Carmel_Valley, tlim=c(2016080800,2016081023),
                      timezone='America/Los_Angeles')
C_V_3hourly <- monitor_timeAverage(C_V, avg.time="3 hour")
head(C_V$data, n=15)
head(C_V_3hourly$data, n=5)

MazamaScience/PWFSLSmoke documentation built on July 3, 2023, 11:03 a.m.