R/monitor_trim.R
monitor_trim.Rd
Trims the time axis of a ws_monitor object to exclude timestamps prior to the first and after the last valid datapoint for any monitor.
monitor_trim(ws_monitor)
ws_monitor | ws_monitor object |
---|
A ws_monitor object with missing data trimmed.
if (FALSE) { # Fail gracefully if any resources are not available try({ library(PWFSLSmoke) library(MazamaSpatialUtils) sm13 <- wrcc_createMonitorObject(20150101, 20151231, unitID = 'sm13') sm13$meta[,c('stateCode','countyName','siteName','monitorID')] Deschutes <- monitor_subset(sm13, monitorIDs='lon_.121.453_lat_43.878_wrcc.sm13') Deschutes <- monitor_trim(Deschutes) monitor_dailyBarplot(Deschutes) }, silent = FALSE) }