case_comp {ss3sim} | R Documentation |
Write a case file for length- or age-composition data
Description
Use R code to write arguments to the disk, which will later be used in a ss3sim simulation.
Usage
case_comp(fleets = 1, Nsamp = NULL, years = NULL, cpar = 2, type,
case, spp)
Arguments
fleets |
Vector of fleet numbers, where the order of
|
Nsamp |
A list of length |
years |
A list of length |
cpar |
A vector of cpar for each fleet. |
type |
A character value of |
case |
The casenumber you want to write to.
If |
spp |
A vector of character values argument specifying the species. |
Examples
case_comp(fleets = 1:2, case = 30, spp = "cod",
Nsamp = list(rep(10, 40), rep(10, 25)),
years = list(61:100, 76:100), cpar = 2:1, type = "agecomp")
done <- file.remove("agecomp30-cod.txt")