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)

Blue-Matter/MSEtool documentation built on Nov. 22, 2024, 8:23 p.m.