SubOM: Subset a Stock, Fleet, Obs, or Imp object from an OM object

View source: R/OM_functions.R

SubOMR Documentation

Subset a Stock, Fleet, Obs, or Imp object from an OM object

Description

A function that strips out a Stock, Fleet, Obs, or Imp object from a complete OM object. Mainly used for internal functions.

Usage

SubOM(OM, Sub = c("Stock", "Fleet", "Obs", "Imp"))

Arguments

OM

An operating model object (class OM)

Sub

A character string specifying what object type to strip out "Stock", "Fleet", "Obs", or "Imp"

Value

An object of class Stock, Fleet, Obs, or Imp

Author(s)

A. Hordyk

See Also

Sub for subsetting MSE output and SubCpars for subsetting by simulation and projection years.

Examples

Stock <- SubOM(testOM, "Stock")
class(Stock)

MSEtool documentation built on Sept. 30, 2024, 9:22 a.m.