SI_record: Generate One or several Species Information (SI) records

View source: R/format_records.R

SI_recordR Documentation

Generate One or several Species Information (SI) records

Description

SI_record returns comma separated text line(s) to be used in a files imported into ICES InterCatch database. See http://datsu.ices.dk/web/selRep.aspx?Dataset=76. To reduce the risk of enter data in the wrong place we recommend that you always use named parameter list when calling this function

Usage

SI_record(
  Country,
  Year,
  SeasonType,
  Season,
  Fleet,
  AreaType,
  FishingArea,
  DepthRange = NA,
  Species,
  Stock = NA,
  CatchCategory = "L",
  ReportingCategory = "R",
  DataToFrom = NA,
  Usage = "H",
  SamplesOrigin = NA,
  QualityFlag = NA,
  UnitCATON,
  CATON,
  OffLandings = -9,
  varCATON = -9,
  InfoFleet = NA,
  InfoStockCoordinator = NA,
  InfoGeneral = NA
)

Arguments

Country

character vector (mandatory)

Year

Season numeric vector (mandatory)

SeasonType

character vector. Keywords defined by ICES see doc (mandatory)

Season

Season numeric vector (mandatory)

Fleet

character vector. Keywords defined by stock coordinator see doc (mandatory)

AreaType

character vector. Keywords defined by ICES see doc (mandatory)

FishingArea

character vector. Keywords defined by ICES see doc (mandatory)

DepthRange

currently not used. Set to NA by default (optional)

Species

character vector. Keywords defined by ICES see doc (mandatory)

Stock

character vector. Keywords defined by ICES see doc (default NA)

CatchCategory

character vector. Keywords defined by ICES see doc (default L)

ReportingCategory

character vector. Keywords defined by ICES see doc (default R)

DataToFrom

character vector. Keywords defined by ICES see doc (default NA)

Usage

character vector. Keywords defined by ICES see doc (default H)

SamplesOrigin

character vector. Keywords defined by ICES see doc (default NA)

QualityFlag

character vector. Keywords defined by ICES see doc (default NA)

UnitCATON

character vector. Keywords defined by ICES see doc (mandatory)

CATON

numeric vector (mandatory)

OffLandings

numeric vector (optional)

varCATON

numeric vector (optional)

InfoFleet

character vector (optional)

InfoStockCoordinator

character vector (optional)

InfoGeneral

character vector (optional)

Value

Comma separated text string(s) in InterCatch SI format

Examples

SI_record(Country = "SE", Year = 2020, SeasonType = "Month", Season = 6,
 Fleet = "MIS_R", AreaType = "SubDiv", FishingArea = "27.d.3.29",
 Species = "TRS", UnitCATON = "kg", CATON = 16)


kagervall/ICimportr documentation built on March 18, 2024, 5:19 a.m.