Description Usage Arguments Value
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
.
1 | write_univariate(x, outdir, md = NULL, date_range = NULL)
|
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 |
invisible, writes variables of x
into seperate files named <stationcode>.csv (delimited by space) into outdir
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.