View source: R/download_discrete.R
download_discrete | R Documentation |
King County VPN connection required! This function allows you to easily download any subset of parameters for a given site (or sites) from the Marine Monitoring Portal. The data will be saved as a .csv file so you don't have to keep re-downloading it. Speedy and convenient! Automatically removes bad and missing data with qualifier codes 4 or 9. Based on code by Curtis DeGasperi.
download_discrete(sites, parms_in, fname, include_bad = F)
sites |
a character vector with locator codes for stations. These stations are the ones for which data will be downloaded. |
parms_in |
a character vector with short parameter names (ParmName)
for which you want data. See |
fname |
a string indicating the filename where the data will be saved.
The filename is relative to the current working directory,
|
include_bad |
a logical value indicating whether to include the bad and missing data. Automatically set to FALSE. |
sites <- c("NSEX01", "JSUR01", "LSNT01")
parms_in <- c("NNN", "DO")
fname <- "my_discrete_data.csv"
## Not run: download_discrete(sites, parms_in, fname, include_bad = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.