View source: R/compileNETNdata.R
compileNETNdata | R Documentation |
Compile flat files from NETN Access Database for R package
compileNETNdata(
path = "./Data/",
export = TRUE,
surface = TRUE,
active_site = TRUE,
active_metric = TRUE,
restricted = TRUE,
cleanEnv = TRUE
)
path |
Quoted path to export csv files to. Defaults to "Data" folder within current project. |
export |
|
surface |
|
active_site |
|
active_metric |
|
restricted |
|
cleanEnv |
|
This function create flat files from NETN's water database. The function returns 2 data frames used for the
NCRNWater R package (Water Data and Meta Data).
Currently the Water Data list element can include (1) measurements at all sampled depths (for plotting profiles) AND the
the median value of measurements taken within the top 2m of the water surface when surface == FALSE
or
(2) just the median values of surface measurements within the top 2m of the water surface surface == TRUE
.
The latter is to enable examining patterns in the stream surface or lake epilimnion over time and is currently (as of 11/1/2019) the data working
in the NCRNwater package.
Returns a list of two dataframes (WaterData and MetaData) formatted for import into NCRNwater R package.Exports data to folder by default.
# compile NETN water data for surface measurements and active metrics only,
# and export to C:/Data.
compileNETNdata(path = "C:/Data/", export = TRUE, surface = TRUE, active = TRUE,
restricted = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.