R/monitor_getDailyMean.R
monitor_getDailyMean.Rd
Calculates and returns daily means for a monitor. If either
startdate
or enddate
is NULL
, a single value is
returned for that date.
monitor_getDailyMean( ws_monitor, monitorID = NULL, startdate = NULL, enddate = NULL )
ws_monitor | ws_monitor object |
---|---|
monitorID | monitor ID of interest |
startdate | desired start date (integer or character in Ymd format
or |
enddate | desired end date (integer or character in Ymd format
or |
A dataframe of daily means.
library(PWFSLSmoke) monitor_getDailyMean( PWFSLSmoke::Carmel_Valley, startdate = "2016-08-01", enddate = "2016-08-08" )#> datetime 060530002_01 #> 1 2016-08-01 23.33333 #> 2 2016-08-02 51.26087 #> 3 2016-08-03 58.37500 #> 4 2016-08-04 50.00000 #> 5 2016-08-05 49.79167 #> 6 2016-08-06 62.41667 #> 7 2016-08-07 76.83333 #> 8 2016-08-08 56.79167