add_data: Add data to lingcod model

View source: R/add_data.R

add_dataR Documentation

Add data to lingcod model

Description

Modifies the elements of the data file to add new data

Usage

add_data(
  dat,
  area,
  dat_type = NULL,
  part = NULL,
  fleets = NULL,
  verbose = TRUE
)

Arguments

dat

List created by get_inputs_ling() or r4ss::SS_readdat()

area

Area associated with the model, either "n" or "s"

dat_type

Character vector listing data types to add NULL value will lead to all data types

part

Partition to include (e.g. to include only retained length comps instead of discarded length comps). Currently only filters commercial data for which discards comps are available.

fleets

Optional vector of fleet numbers for which to add data NULL value will use all fleets from get_fleet()

verbose

A logical value specifying if output should be printed to the console or not. The default is FALSE, which will suppress messages.

Author(s)

Ian G. Taylor

See Also

get_dir_ling(), get_inputs_ling(), clean_comps()


iantaylor-NOAA/Lingcod_2021 documentation built on Oct. 30, 2024, 6:42 p.m.