Learn R Programming

DLMtool (version 5.0)

Replace: Replace an existing Stock, Fleet, Obs, or Imp object

Description

A function that replaces a Stock, Fleet, Obs, or Imp object from an OM with one from another OM. Mainly used for internal functions.

Usage

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

Arguments

OM

An operating model object (class OM) which will be updated with a sub-model from another OM

from

The OM object from which the sub-model is being taken

Sub

A character string specifying what object type to replace "Stock", "Fleet", "Obs" or "Imp" (default is all four which is probably not what you want to do)

Value

An object of class OM