PWFSLSmoke (version 1.2.100)

monitor_timeAverage: 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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab