read_NSdata {GREENeR} | R Documentation |
Read NS data
Description
Function to read the data and return the data frame for GREEN execution.
Usage
read_NSdata(path, tsn, obs, ff, rain, topo, lr, length)
Arguments
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). |
Value
One object, a list with two data frame. First position of the list contains the catch data and the second one the annual data.
Examples
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")