SS_write_ts: Function to write the CPUE from an atlantis OM into a Stock...

View source: R/SS_write_ts.R

SS_write_tsR Documentation

Function to write the CPUE from an atlantis OM into a Stock Synthesis 3.3 estimation model

Description

Function to write the CPUE from an atlantis OM into a Stock Synthesis 3.3 estimation model

Usage

SS_write_ts(
  ss_data_list,
  ts_data,
  CVs,
  data_years,
  sampling_month,
  units,
  fleets,
  data_type
)

Arguments

ss_data_list

the list of the SS .dat file that #'comes from SS_readdat

CVs

a vector of numbers representing the CV around the index

data_years

a vector, where each item is the length of the index

sampling_month

a list, where each item is a vector representig the month of sampling for each index

units

a vector where each entry must be one of "numbers" or "biomass"

fleets

a list of vectors, in each vector each entry is the fleet number

data_type

a vector with length = length(ts_data), each entry must be either "CPUE" or "catch"

cpue_data

a list, where each list item is a #'vector of the observations for each index


r4atlantis/atlantisom documentation built on Nov. 12, 2023, 2:59 a.m.