R/river_model_prediction.R
river_model_prediction.Rd
This function is the front-end for model search on the server, model building with existing data, or prediction with new data. It invokes all other functions and handles their objects. It is a main function.
river_model_prediction(river) search_existing_models(river_dir)
river | character. The desired river, like "isar". |
---|---|
river_dir | character. Path to server and river directory |
(invisible) The data.frame returned by the prediction plus a date column for easy plotting.
Returns a list with the existing models for that river (empty if no model was found).
search_existing_models
: directory searching
# \donttest{ river_model_prediction(river = "isar")#> Error: No such directory: /home/travis/R-Development/RScripts/Flusshygiene/config# } # \donttest{ serverpath <- "//poseidon/projekte$/SUW_Department/Projects/FLUSSHYGIENE/Data-Work packages/Daten" river_dir <- search_existing_river_dir(river = "isar", server = serverpath)#> Error in search_existing_river_dir(river = "isar", server = serverpath): could not find function "search_existing_river_dir"search_existing_models(river_dir = river_dir)# }#> Error in search_existing_models(river_dir = river_dir): object 'river_dir' not found