PWFSLSmoke (version 1.2.100)

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

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

monitor_trim(ws_monitor)

Arguments

ws_monitor

ws_monitor object

Value

A ws_monitor object with missing data trimmed.

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab