Description Usage Arguments Value Examples
View source: R/download_timeseries_data.R
Download time series data for specified sites. Time series data contains data on water quality and quantity, collected or computed from outside sources. This function will download 1 zip file per site to the specified save directory. See metadata associated with data release item 3: timeseries data.
1 2 3 4 5 | download_timeseries_data(
sitename,
save_dir,
overwrite_file = FALSE
)
|
sitename |
The sitename should be in the same format used in the site data. See examples below. |
save_dir |
Path of the desired save directory |
overwrite_file |
Boolean indicating if local file should be overwritten if it already exists. ( |
Downloads one zip file per site to save_dir.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
download_timeseries_data("nwis_01036390","./data/timeseries")
download_timeseries_data(sitename = c("nwis_01036390","nwis_01570500"),
save_dir = "./data/timeseries",TRUE)
pc_sites <- download_site_data()
lapply(pc_sites$site_name,download_timeseries_data,
save_dir = "./data/timeseries",overwrite_file=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.