SD_record: Generate One or several Species data (SD) records

View source: R/format_records.R

SD_recordR Documentation

Generate One or several Species data (SD) records

Description

Generate One or several Species data (SD) records

Usage

SD_record(
  Country,
  Year,
  SeasonType,
  Season,
  Fleet,
  AreaType,
  FishingArea,
  DepthRange = NA,
  Species,
  Stock = NA,
  CatchCategory = "L",
  ReportingCategory = "R",
  Sex = "N",
  CANUMtype,
  AgeLength,
  PlusGroup = -9,
  SampledCatch = -9,
  NumSamplesLngt = -9,
  NumSamplesMeas = -9,
  NumSamplesAge = -9,
  NumAgeMeas = -9,
  unitMeanWeight,
  unitCANUM,
  unitAgeOrLength,
  UnitMeanLength = "na",
  Maturity = NA,
  NumberCaught,
  MeanWeight,
  MeanLength = -9,
  varNumLanded = -9,
  varWgtLanded = -9,
  varLgtLanded = -9
)

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)

Sex

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

CANUMtype

character vector. Value "age" or "lngt" (mandatory)

AgeLength

numeric vector (mandatory)

PlusGroup

numeric vector (optional)

SampledCatch

numeric vector (optional)

NumSamplesLngt

numeric vector (optional)

NumSamplesMeas

numeric vector (optional)

NumSamplesAge

numeric vector (optional)

NumAgeMeas

numeric vector (optional)

unitMeanWeight

character vector. Value "g" or "kg" (mandatory)

unitCANUM

character vector. Value "k", "m" or "n" (mandatory)

unitAgeOrLength

character vector. Value "cm", "mmm", "wr" or "year" (mandatory)

UnitMeanLength

character vector. Value "cm", "cm" or "na" (default "na")

Maturity

character vector. Value "I", "M" or NA (default NA)

NumberCaught

numeric vector (mandatory)

MeanWeight

numeric vector (mandatory)

MeanLength

numeric vector (optional)

varNumLanded

numeric vector (optional)

varWgtLanded

numeric vector (optional)

varLgtLanded

numeric vector (optional)

Value

Comma separated text string(s) in InterCatch SD format

Examples

SD_record(Country = "SE", Year = 2019, SeasonType = "Month", Season = 7,
Fleet = "FYK_C", AreaType = "Subdiv", FishingArea = "27.d.c.29",
Species = "SAL", CANUMtype = "age", AgeLength = 0, unitMeanWeight = "kg",
unitCANUM = "n", unitAgeOrLength = "year", NumberCaught = 15000, MeanWeight = 4.3)


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