read_NSdata | R Documentation |
Function to read the data and return the data frame for GREEN execution.
read_NSdata(path, tsn, obs, ff, rain, topo, lr, length)
path |
string. A string with the path of the CSV files. |
tsn |
file. A CSV file with nine variables YearValue (integer), HydroID (integer), Atm (float), Min (float), Man (float), Fix (float), Soil (float), Sd (float) and Ps (float). |
obs |
file. A CSV file with three variables YearValue (integer), HydroID (integer) and YearlyMass (float). |
ff |
file. A CSV file with three variables YearValue (integer), HydroID (integer) and ForestFraction (float). |
rain |
file. A CSV file with three variables YearValue (integer), HydroID (integer) and Rain (float). |
topo |
file. A CSV file with two variables HydroID (integer) and Next_HydroID (integer). |
lr |
file. A CSV file with three variables HydroID (integer), AvgDepth (float) and ResTime (float). |
length |
file. A CSV file with two variables HydroID (integer) and LengthKm (float). |
One object, a list with two data frame. First position of the list contains the catch data and the second one the annual data.
path <- "https://raw.githubusercontent.com/calfarog/GREENeR_data/main/data/csv/"
ns_data <- read_NSdata(path, "TS_nutrients.csv", "Obs_monitoring.csv",
"ForestFr.csv", "Precipitation.csv", "Topology.csv", "LakeProperties.csv",
"Length.csv")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.