read.MFCLPseudoSizeComp: Read MFCLPseudo Size Comp

View source: R/read.MFCLPseudo.r

read.MFCLPseudoSizeCompR Documentation

Read MFCLPseudo Size Comp

Description

Reads in simulated length and weight size composition data from the MFCL generated file 'test_lw_sim' (or 'test_lw_sim_alt') and returns a partially complete object of MFCLPseudo. The 'catcheff' slot of the MFCLPseudo object is not filled.

Usage

read.MFCLPseudoSizeComp(
  lw_sim = "test_lw_sim_alt",
  projfrq = projfrq,
  ctrl = "missing",
  historical = FALSE
)

Arguments

lw_sim

A character string for the input file name.

projfrq

An MFCLFrq object for the projection period over which the pseudo data have been generated.

ctrl

An MFCLMSEControl.

historical

Boolean TRUE or FALSE If the simulated data include the historical period or just the projecion period.

Details

There are now several functions for reading pseudo data :

  • read.MFCLPseudo - reads both catch, effort and size comps. Works when you only have either pseudo length or weight composition data (e.g. skipjack).

  • read.MFCLCatchEffort - only reads in the simulated catch and effort data

  • read.MFCLPseudoSizeComp - only reads the size comp data from test_lw_sim but works when you have both length and weight data.

Value

An object of class MFCLPseudo.

See Also

MFCLprojControl MFCLFrq MFCLPar

Examples

## Not run: 
# Expanding an MFCLFrq, e.g. that was used from in an assessment
pseudo <- read.MFCLPseudoSizeComp('test_lw_sim', projfrq, mseCtrl, historical=FALSE)

## End(Not run)

PacificCommunity/ofp-sam-flr4mfcl documentation built on April 8, 2024, 6:47 p.m.