dat.update: This takes simulated data from the operating model pop...

Description Usage Arguments

View source: R/update_dat.R

Description

This takes simulated data from the operating model pop dynamics and adds it in the correct format to the .dat file for SS.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
dat.update(
  year,
  dat.list,
  dat.,
  agecomp.list,
  I,
  .datcatch,
  comp.I = NULL,
  dir.,
  write = T
)

Arguments

year

last year in sequence of new data

dat.list

list that has the sequence of years

dat.

data file that needs to be updated

agecomp.list

simulated age comps from catch

I

simulated indices of abundance for each fleet. Default is NULL and competition index will not be included in assessment.

.datcatch

A dataframe with the catch for each fishing fleet in the correct units (biomass and numbers)

comp.I

index of red snapper abundance, a measure of competition

dir.

directory of where to read and write new files from/to

write

default set to TRUE, if FALSE, new .dat file will not be saved (won't overwrite the old file)


mcoshima/moMSE documentation built on Nov. 26, 2020, 5:39 a.m.