Learn R Programming

DLMtool (version 5.1.3)

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"), Quiet = F)

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)

Quiet

Should the function not return a text message

Value

An object of class OM

Examples

Run this code
# NOT RUN {
OM <- Replace(OM, fromOM, "Stock")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab