Function to read the data and return the data frame for GREEN execution.
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
# \donttest{
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")
#> Error in read_NSdata(path, "TS_nutrients.csv", "Obs_monitoring.csv", "ForestFr.csv", "Precipitation.csv", "Topology.csv", "LakeProperties.csv", "Length.csv"): could not find function "read_NSdata"
# }