Description Usage Arguments Value Examples
View source: R/downloadaquariusdata.R
This function downloads the data from all datasets listed in the parameter table.
1 | downloadaquariusdata(datasets, sites, startyear, endyear, site.rename)
|
datasets |
is a data frame in the format of the output from the finddatasets() function. |
sites |
(optional) is a list of sites to download data for. This list cannot include any sites not in datasets table but it does not need to include all of those sites. If it is ignored all sites from the parameter table will be included. |
startyear |
(optional) is a single value of the year you wish to start your time series. Data prior to January 1st of this year will not be downloaded. |
endyear |
(optional) is a single value of the year you wish to end your time series. Data after December 31st of this year will not be downloaded. |
site.rename |
(optional) is a vector of names to replace the site names in the output. This argument allows the site ID in the output to not exactly match the site ID in aquarius. |
A data frame with all the data from the sites and parameters listed in the arguments
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #ParameterTable <- finddatasets(sites=c("BELA-088", "BELA-108", "KOVA-085", "YUCH-005"),
# parameters = c("LakeDepth", "SedimentTemperatureC","DissolvedOxygen(ODOconc)","pH","SpecificConductance(SpCond)","Temperature"),
# searchterms = c("Pressure_LakeDepth@", "Pressure_BottomTemp@", "DOconc@", "Sonde_pH@", "Sonde_SpCond@", "Sonde_Temp@"),
# removeterms = "synoptic")
# Downloading the lake data fully based on the defaults
DownloadedData <- downloadaquariusdata(ParameterTable)
# Downloading the lake data only from the site "BELA-088"
DownloadedData <- downloadaquariusdata(ParameterTable, sites = "BELA-088")
# Downloading the lake data only from the site "BELA-108" but renaming it "Site1"
DownloadedData <- downloadaquariusdata(ParameterTable, sites = "BELA-108", site.rename = "Site1")
# Downloading the lake data but only from the sites "KOVA-085" and "YUCH-005" but renaming the KOVA site as "Site1" and the YUCH site as "Site2" and "Site3".
DownloadedData <- downloadaquariusdata(ParameterTable, sites = c("KOVA-085","YUCH-005", "YUCH-005") , site.rename = c("Site1","Site2", "Site3"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.