Description Usage Arguments Value Examples
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.
1 | monitor_trim(ws_monitor)
|
ws_monitor |
ws_monitor object |
A ws_monitor object with missing data trimmed.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
# 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)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.