writeRav2file: Write one or many .rav2 files, which hold VRAP input...

Description Usage Arguments Value

Description

Write one or many .rav2 files, which hold VRAP input variables.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
writeRav2file(indexfilename = FALSE, filename = NA,
  defaultargs.filename = NA,
  Title = "ER example of Beverton-Holt VRAP with no marine survival or stream flow variability",
  RanSeed = 0, NRuns = 1000, NYears = 25, MinAge = 2, MaxAge = 5,
  ConvergeCrit = 0.001, Debugg = "NO", SRType = "BEV2",
  BSRa = 9.27599153996063, BSRb = 3702.14272977426, BSRc = NA,
  BSRd = NA, AveEnv = NA, depen = "YES", DL1 = 400, DL2 = 63,
  DR = 0, EscChoice = "YES", SurvScale = "YES",
  SRError.FUN = "rgamma(1, shape=inputs$SRErrorA, scale=inputs$SRErrorB)",
  SRErrorA = 0.967637142385205, SRErrorB = 1.09375572895311,
  ResCorParameter = NA, MarSurv = "NO", BetaMarA = NA,
  BetaMarB = NA, CorrMS = NA,
  FWError.FUN = "rgamma(1, inputs$GammaFlowA, scale=inputs$GammaFlowB)",
  GammaFlowA = 0, GammaFlowB = 0,
  MarError.FUN = "rgamma(1, inputs$GammaMarA, scale=inputs$GammaMarB)",
  GammaMarA = 0, GammaMarB = 0, NumBreakPoints = 0, BaseRegime = 1,
  EscpmntBreakPoint = NA, TargetU = 0.37, MgmtError = "YES",
  MgmtError.FUN = "rgamma(1, shape=inputs$GammaMgmtA, scale=inputs$GammaMgmtB)",
  GammaMgmtA = 65.3946, GammaMgmtB = 0.0158, ECrit = 416,
  ERecovery = 1050, EndAv = 5, StepFunc = "ER",
  BufferStep = 0.0675675675675676, BufferStart = 0,
  BufferEnd = 1.89189189189189, CohortStart = "5108 2554 1478 667 112",
  NatMort = "0.5 0.4 0.3 0.2 0.1",
  MatRate = "0 1.43432324005842E-02 0.226067824725145 0.685044912939359 1",
  PTU = "0 7.97982424808335E-02  0.234143029720483 0.352056542423367 0.33478625941973",
  MatU = "0 0.315672687185273 0.331197585913413 0.339907561109324 0.32870153694989",
  output.raw = "AEQMort Escpmnt TotAEQMort TotAdultEscpmnt TotEscpmnt RanFlow RanMarine Recruits TargetUError ptu.scaled MatU.scaled Cohort tmpdat TempCohort CalendarHR TargetU",
  ...)

Arguments

indexfilename

A Boolean, default is FALSE. The rav2 filename can sometimes get too long for windows. If so, use indexfilename=TRUE, which forces a date-time stamp (to 1/10,000 of a second) to be used for a filename. Additionally a translation table is written that will show both the time stamp filename and the longer filename, which includes arguments.

filename

The name of the .rav2 file to be written. If NA (default) then the function will create a file name based on the argument values choosen.

defaultargs.filename

The name of a .rav2 file that includes default values. If this is chosen then the default values in this function are ignored. But values set in the function arguments are not ignored.

output.raw

A character vector "AEQMort Escpmnt TotAEQMort TotAdultEscpmnt TotEscpmnt RanFlow RanMarine Recruits TargetUError ptu.scaled MatU.scaled Cohort tmpdat TempCohort CalendarHR TargetU" These are the variables that will be included in the output.

...

Value

Writes one or more .rav2 (text/csv) files depending on number of unique combinations created from the input arguments.


MichaelFolkes/VRAP2 documentation built on June 9, 2019, 6:27 p.m.