monitor_trim: Trim ws_monitor Time Axis to Remove NA Periods From Beginning...

Description Usage Arguments Value Examples

View source: R/monitor_trim.R

Description

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.

Usage

1
monitor_trim(ws_monitor)

Arguments

ws_monitor

ws_monitor object

Value

A ws_monitor object with missing data trimmed.

Examples

 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)

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