Learn R Programming

ss3sim (version 0.9.0)

case_index: Write a case file for index data to the disk.

Description

Use Rcode to write arguments to the disk, which will later be used in a ss3sim simulation.

Usage

case_index(fleets = 1, years = NULL, sd = 2, case, spp)

Arguments

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.

Examples

Run this code
case_index(fleets = 2, case = 1, spp = "cod", years = list(7:10), sd = 0.1)
done <- file.remove("index1-cod.txt")

Run the code above in your browser using DataLab