reduce_survey | R Documentation |
This function factory creates a MSEtool management procedure (MP) function that only sees survey data from selected years. For example, this could change the data that an MP sees from an annual survey into a biennial or triennial survey. It could also be used to eliminate commercial observations from some years if the default slots affected were changed.
reduce_survey(
mp,
slots = c("Ind", "VInd", "SpInd", "AddInd", "CAA", "CAL", "ML"),
index = function(x) seq(1, x, by = 2)
)
mp |
An existing management procedure function of class |
slots |
The slots for which you want to reduce observations. |
index |
A function that takes the number of years of observations and
returns a vector indexing the years that should be turned into |
A management procedure function of class "MP"
for use with
MSEtool.
library(DLMtool)
library(SAMtool)
om <- MSEtool::testOM
om@nsim <- 3
temp_mp <- reduce_survey(Islope1)
# mse <- runMSE(OM = om, MPs = "temp_mp")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.