Learn R Programming

ss3sim (version 0.9.0)

case_fishing: Write a case file for fishing data to the disk.

Description

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

Usage

case_fishing(years = 1, years_alter = NULL, fvals = 2, case, spp)

Arguments

years
Vector of years for which F values are specified, if there is more than one fleet or season the catches must be ordered by season:year:fishey (e.g., season1year1fishery1, season2year1fishery1, season1year2fishery1). The actual vector does not hav
years_alter
Vector of years for the which F values will be altered. If there is more than one fishery or season, use the mapping system created in years because actual year values cannot be recycled. For example, to change the second season of t
fvals
Vector of F values to be entered into ss3.par file, where length(fvals) == length(years_alter) must be true.
case
The case number you want to write to. If case = 1, then the result will be 'F1'.
spp
A vector of character values argument specifying the species.

Examples

Run this code
case_fishing(1:100, 1:100, seq(0, 0.4, length.out = 100), 2, "cod")
done <- file.remove("F2-cod.txt")

Run the code above in your browser using DataLab