
Output biomass removed by each predator for an individual prey group from Rsim run
Source:R/ecosim.R
rsim.mort.Rd
Extracts a matrix of biomass removed (in model biomass units) for a particular
prey by each of its predators from the Rsim model output of rsim.run()
.
Examples
# Read in Rpath parameter file and generate model object
Rpath <- rpath(AB.params)
# Create a 50 yr Rsim scenario
Rsim.scenario <- rsim.scenario(Rpath, AB.params, years = 1:50)
# Run the Rsim simulation
Rsim.output <- rsim.run(Rsim.scenario, method = "RK4", years = 1:50)
# Extract a prey's biomass loss from each predator over the model run
Rsim.mort.anchovy <- rsim.mort(Rsim.output, group = "anchovy")