renameSpecies: Rename species

View source: R/manipulate_species.R

renameSpeciesR Documentation

Rename species

Description

[Experimental]

Changes the names of species in a MizerParams object. This involves for example changing the species dimension names of rate arrays appropriately.

Usage

renameSpecies(params, replace)

Arguments

params

A mizer params object

replace

A named character vector, with new names as values, and old names as names.

Value

An object of type MizerParams

Examples

replace <- c(Cod = "Kabeljau", Haddock = "Schellfisch")
params <- renameSpecies(NS_params, replace)
species_params(params)$species

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