write_univariate: Write out multivariate time series into separate files per...

Description Usage Arguments Value

Description

If a metadata table is given, only the stationcodes present in the stationcode column will be written out. If a date range is given, the time series is first subset accordingly (e.g. "2000-2004" translates to 2000-01-01-2004-12-31), and files will be written into a sub-directory of outdir named by date_range.

Usage

1
write_univariate(x, outdir, md = NULL, date_range = NULL)

Arguments

x

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

outdir

directory path to write

md

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

date_range

date range (character) formatted as "start-end" in years, optional

Value

invisible, writes variables of x into seperate files named <stationcode>.csv (delimited by space) into outdir.


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