View source: R/stage_nwis_ts.R
stage_nwis_ts | R Documentation |
get data from nwis and return created file handle
stage_nwis_ts(sites, var, times, folder = tempdir(), version = c("rds",
"tsv"), verbose = FALSE)
sites |
a character vector of valid NWIS site IDs |
var |
short name of variable as in
|
times |
a length 2 vector of text dates in YYYY-MM-DD format |
folder |
a folder to place the file outputs in (defaults to temp directory) |
version |
character string indicating whether you want to stage the
|
verbose |
provide verbose output (currently not implemented) |
a character vector of file handles
## Not run:
files <- stage_nwis_ts(sites = c("nwis_06893820","nwis_01484680"),
var = "doobs", times = c('2014-01-01','2014-01-02'), verbose=TRUE)
head(read_ts(files[1]))
# par is unavailable for all sites, so returns NULL
stage_nwis_ts(sites = list_sites(), var = "par",
times = c('2014-01-01', '2014-01-03'), verbose=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.