Main.VRAP1: Main sensu VRAP 1.0 but for VRAP 2.0

View source: R/Main_VRAP1.R

Main.VRAP1R Documentation

Main sensu VRAP 1.0 but for VRAP 2.0

Description

Runs VRAP sensu 1.0 with the VRAP 2.0 totEsc engine. Does not use parallel in R code, but has C++ version.

Usage

Main.VRAP1(InFile = NULL, OutFileBase = NULL, NRuns = -1, NYears = -1,
  Title = -1, TargetStart = -1, TargetEnd = -1, TargetStep = -1,
  ERecovery = -1, QET = -1, ECrit = -1, NewRavFileName = "tmprav.rav",
  forceNewRav = NULL, silent = FALSE, version = "R",
  save.output.as.files = TRUE)

Arguments

InFile

The name of the .rav file. Only .rav since this is to duplicate VRAP 1.0

OutFileBase

The basename for the .sum, .byr, and .esc output files

NRuns

Number of runs to use in the simulations if the user wants to use something different than what is in the .rav file

NYears

Number of years to project forward in the simulations if the user wants to use something different than what is in the .rav file

Title

Title to use for the report if the user wants to use something different than what is in the .rav file

TargetStart

Target ER to start simulations at if the user wants to use something different than what is in the .rav file

TargetEnd

Target ER to end simulations at if the user wants to use something different than what is in the .rav file

TargetStep

Target ER step sizes if the user wants to use something different than what is in the .rav file

ERecovery

Recovery target if the user wants to use something different than what is in the .rav file

QET

if the user wants to use something different than what is in the .rav file

ECrit

if the user wants to use something different than what is in the .rav file

NewRavFileName

A new .rav file is saved in case the user has changed any values from what is in the .rav file.

forceNewRav

Force use of new rav file. Needed for shiny app.

silent

Whether to show progress bar.

version

"R" or "C". C is much faster.

save.output.as.files

If TRUE (default), then .sum, .byr, .esc and .rav files are saved using OutFileBase. If FALSE, no files are saved and only the list is output.

Value

list with output list from RunSims() and output time


eeholmes/VRAPCpp documentation built on Feb. 6, 2024, 7:25 a.m.