case_index {ss3sim}R Documentation

Write a case file for index data to the disk.

Description

Use R code 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

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

[Package ss3sim version 1.0.3 Index]