rvk2icesxml: rvk2icesxml

Description Usage Arguments

Description

Converts data.frame to ices xml format for standard graphs. The function is a brute force coding and does not have any error checking on the input data.

Usage

1
2
3
4
5
rvk2icesxml(rby, FishStock, AssessmentYear, RecruitmentAge, FAge, rba,
  UnitsWeigths = "tonnes", UnitsRecruits = "millions",
  TypeLandings = "official", Flim, Fpa, Blim, Bpa, FMSY, MSYBtrigger,
  Fmanagement, Bmanagement, RecruitmentLength, Custom1, Custom2, Custom3,
  Custom4, Custom5, VersionStock, NameSystemProducedFile)

Arguments

rby

A data frame containing stock summary data. Column names besides the Year column which is required can be any of the following:

  • Year - Year

  • Low_Recruitment - XX

  • Recruitment - XXX

  • High_Recruitment - XXX

  • Low_TBiomass - XXX

  • TBiomass - XXX

  • High_TBiomass - XXX

  • Low_SSB - XXX

  • SSB - XXX

  • High_SSB - XXX

  • Catches - XXX

  • Landings - XXX

  • Discards - XXX

  • IBC - XXX

  • Unallocated_Removals - XXX

  • YieldSSB - XXX

  • Low_F - XXX

  • F - XXX

  • High_F - XXX

  • F_Landings - XXX

  • F_Discards - XXX

  • F_IBC - XXX

  • F_Unallocated - XXX

  • SoP - XXX

  • Custom1 - XXX

  • Custom2 - XXX

  • Custom3 - XXX

  • Custom4 - XXX

  • Custom5 - XXX

FishStock

A character vector containing stock "name". e.g. "cod-farp", "cod-iceg".

AssessmentYear

An integer representing assessment year

RecruitmentAge

An integer representing recruitment age

FAge

A character vector containg reference fishing moralites, e.g. "F5-10"

rba

\codedata.frame containing yield per recruit input. If missing it is ignored. If supplied required column names are:

  • Age - age

  • M - natural mortality

  • Mat - maturity

  • PF - partial fishing mortality before spawning

  • PM - partial natural mortality before spawning

  • WeSt - spawning stock weights

  • F - selection pattern

  • WeCa - catch weights

  • Fd - selection pattern of discards

  • WeCad - discard catch weights

  • Fi - selection pattern of industrial waste

  • WeCai - industrial catch weights

Flim

A numeric value

Fpa

A numeric value

Blim

A numeric value

Bpa

A numeric value

FMSY

A numeric value

MSYBtrigger

A numeric value

Fmanagement

A numeric value

Bmanagement

A numeric value

RecruitmentLength

A numeric value

UnitsWeigths

A character, expect any one of "Kilograms", "Tonnes", "Thousand tonnes", "Million tonnes"

UnitsRecruits

A character, expect any one of "Thousands", "Millions", "Billions"

TypeLandings

A character, e.g. "official", "ices estimates".

Custom1

XXX

Custom2

XXX

Custom3

XXX

Custom4

XXX

Custom5

XXX

VersionStock

XXX

NameSystemProducedFile

XXX


einarhjorleifsson/fishvise documentation built on May 16, 2019, 1:26 a.m.