Skip to contents

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

See also

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

Author

A. Hordyk

Examples

Stock <- SubOM(testOM, "Stock")
class(Stock)
#> [1] "Stock"
#> attr(,"package")
#> [1] "MSEtool"