A function that replaces a Stock, Fleet, Obs, or Imp object from an OM with one from another OM. Mainly used for internal functions.
Replace(OM, from, Sub = c("Stock", "Fleet", "Obs", "Imp"))
An operating model object (class OM) which will be updated with a sub-model from another OM
The OM object from which the sub-model is being taken
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)
An object of class OM