predictScenarios: predictScenarios

Description Usage Arguments

View source: R/predictScenarios.R

Description

Executes tasks for the management source-change scenarios, including generating load predictions for the scenario, saving the predictions to the 'predictScenarios.list', and executing the mapping function 'predictMaps'.

Executed By:


Executes Routines:


Usage

1
2
3
4
5
predictScenarios(input, allMetrics, output_map_type, Rshiny,
  estimate.input.list, predict.list, scenario.input.list, data_names,
  JacobResults, if_predict, DataMatrix.list, SelParmValues, subdata,
  file.output.list, add_vars, mapping.input.list, batch_mode,
  RSPARROW_errorOption)

Arguments

input

top level interactive user input in Shiny app

allMetrics

character string of all load, yield, uncertainty, and data dictionary variables to map in shiny batch mode

output_map_type

character string control setting to identify type of map(s) to output to PDF file from "stream","catchment", or "both"

Rshiny

TRUE/FALSE indicating whether routine is being run from the Shiny app

data_names

data.frame of variable metadata from data_Dictionary.csv file

JacobResults

list output of Jacobian first-order partial derivatives of the model residuals estimateNLLSmetrics.R contained in the estimate.list object. For more details see documentation Section 5.2.4.5.

if_predict

yes/no indicating whether or not prediction is run

SelParmValues

selected parameters from parameters.csv using condition ifelse((parmMax > 0 | (parmType=="DELIVF" & parmMax>=0)) & (parmMin<parmMax) & ((parmType=="SOURCE" & parmMin>=0) | parmType!="SOURCE")

subdata

data.frame input data (subdata)

add_vars

additional variables specified by the setting add_vars to be included in prediction, yield, and residuals csv and shape files

batch_mode

yes/no character string indicating whether RSPARROW is being run in batch mode

RSPARROW_errorOption

tbep-tech/tbepRSparrow documentation built on Oct. 9, 2020, 6:24 a.m.