Takes an existing OM object and converts it to one without any observation error, implementation error, very little process error, and/or gradients in life history parameters and catchability.
tinyErr(x, ...) # S4 method for OM tinyErr(x, obs = TRUE, imp = TRUE, proc = TRUE, grad = TRUE, silent = FALSE)
An object of class
Arguments to generic function
Logical. Remove observation error?
Obs is replaced with
Logical. Remove implementation error?
Imp is replaced with
Logical. Remove process error? All
cv slots in
Fleet object are set to 0.
Logical. Remove gradients? All
grad slots in
Fleet are set to 0.
Logical. Display messages?
An updated object of class
Useful for debugging and testing that MPs perform as expected under perfect conditions.
OM_noErr <- tinyErr(MSEtool::testOM) #> ✔ Removing all Observation Error #> ✔ Removing all Implementation Error #> ✔ Removing all Process Error #> ✔ Removing all Gradients