monitor_timeAverage: Calculate Time Averages

Description Usage Arguments Value Examples

View source: R/monitor_timeAverage.R

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

1
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

1
2
3
4
5
6
7
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)

PWFSLSmoke documentation built on Nov. 23, 2021, 5:06 p.m.