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

Description Usage Arguments Examples

View source: R/case-write.R

Description

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

Usage

1
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

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

ss3sim documentation built on Nov. 9, 2019, 1:06 a.m.