removeSpecies: Remove species

View source: R/manipulate_species.R

removeSpeciesR Documentation

Remove species

Description

[Experimental]

This function simply removes all entries from the MizerParams object that refer to the selected species. It does not recalculate the steady state for the remaining species or retune their reproductive efficiency.

Usage

removeSpecies(params, species)

Arguments

params

A mizer params object for the original system.

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

An object of type MizerParams

Examples

params <- NS_params
species_params(params)$species
params <- removeSpecies(params, c("Cod", "Haddock"))
species_params(params)$species

mizer documentation built on Oct. 17, 2024, 9:07 a.m.