Skip to contents

This calls mizer::removeSpecies() and in addition removes the relevant row from the carrion consumption array rho.

Usage

removeSpecies(params, species)

Arguments

params

A MizerParams object

species

The species to be removed. A vector of species names, or a numeric vector of species indices, or a logical vector indicating for each species whether it is to be removed (TRUE) or not.

Value

A MizerParams object with fewer species.

Examples

params <- NWMed_params
species_params(params)$species
#> Error in species_params(params): could not find function "species_params"
params <- removeSpecies(params, c("Poor cod", "Horse mackerel"))
species_params(params)$species
#> Error in species_params(params): could not find function "species_params"