extract_ts: Extract gap filtered time series

Description Usage Arguments Value

Description

The metadata table must have gap statistics columns matching the date range(s), as created by gap_statistics.

Usage

1
2
extract_ts(x = cl_streamflow_mm, md, date_ranges, c_d_min = 80,
  c_m_min = 80, lg_max = 6, excelfile = NULL, outdir = NULL)

Arguments

x

x daily timeseries (tibble) with Date and data columns named with the stationcode

md

metadata table (tibble) with a stationcode column containing the stations to be used

date_ranges

date range(s) (character or character vector) formatted as "start-end" in years

c_d_min

minimum daily completeness

c_m_min

minimum monthly completeness

lg_max

maximum gap length

excelfile

file path to write excel table with metadata per date range as workbooks, optional

outdir

directory path for saving timeseries into univariate files (see write_univariate), optional

Value

a list of two objects:


jthurner/baseflowchile documentation built on May 29, 2019, 1:50 a.m.