readApprovalBar: Read Approval Bars

Description Usage Arguments Value

View source: R/utils-read.R

Description

for a timeseries, will return a list of approval bars to be plotted

Usage

1
readApprovalBar(ts, timezone, legend_nm, snapToDayBoundaries = FALSE)

Arguments

ts

the timeseries to get approval bars for, *ts must be parsed by readTimeseries*

timezone

the timezone to convert all times to

legend_nm

the name to be assigned to the legend entries (as a suffix)

snapToDayBoundaries

true to shift all bar edges to the closest end/beginning of the days

Value

list of approval bar ranges, lists should contain the possible named items appr_working_uv, appr_analyzed_uv, appr_approved_uv


USGS-R/repgen documentation built on April 14, 2021, 2:47 p.m.