View source: R/monitor_dailyStatistic.R
monitor_dailyStatistic | R Documentation |
Daily statstics are calculated for each time series in monitor$data
using FUN
and any arguments passed in ...
.
Because the returned mts_monitor object is defined on a daily axis in a
specific time zone, it is important that the incoming monitor
contain
timeseries associated with a single time zone.
monitor_dailyStatistic(
monitor = NULL,
FUN = mean,
na.rm = TRUE,
minHours = 18,
dayBoundary = c("clock", "LST"),
...
)
monitor |
mts_monitor object. |
FUN |
Function used to create daily statistics. |
na.rm |
Value passed on to |
minHours |
Minimum number of valid hourly records per day required to
calculate statistics. Days with fewer valid records will be assigned |
dayBoundary |
Treatment of daylight savings time: "clock" uses daylight savings time as defined in the local timezone, "LST" uses "local standard time" all year round. |
... |
Additional arguments to be passed to |
A mts_monitor object containing daily statistical summaries. (A list with
meta
and data
dataframes.)
When dayBoundary = "clock"
, the returned monitor$data$datetime
time axis will be defined in the local timezone (not "UTC") with days defined
by midnight as it appears on a clock in that timezone. The transition from
DST to standard time will result in a 23 hour day and standard to DST in a
25 hour day.
When dayBoundary = "LST"
, the returned monitor$data$datetime
time axis will be defined in "UTC" with times as they appear in standard
time in the local timezone. These days will be one hour off from clock
time during DST but every day will consist of 24 hours.
library(AirMonitor)
Carmel_Valley %>%
monitor_dailyStatistic(max) %>%
monitor_getData()
Carmel_Valley %>%
monitor_dailyStatistic(min) %>%
monitor_getData()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.