Write a case file for index data to the disk.
Use code to write arguments to the disk, which will later be used in a ss3sim
simulation.
case_index(fleets = 1, years = NULL, sd = 2, case, spp)
fleets
: Vector of fleet numbers, where the order of fleets
will dictate the order of all remaining arguments.years
: A list of length length(fleets)
, where each element of the list contains a vector of years for the given fleet.sd
: A list of standard deviations for each fleet.case
: The case number you want to write to. If case = 1
, then the result will be 'index1'
.spp
: A vector of character values argument specifying the species.case_index(fleets = 2, case = 1, spp = "cod", years = list(7:10), sd = 0.1) done <- file.remove("index1-cod.txt")