Changes the names of species in a MizerParams object

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

# \dontrun{ replace <- c(Cod = "Kabeljau", Haddock = "Schellfisch") params <- renameSpecies(NS_params, replace) species_params(params)$species
#> [1] "Sprat" "Sandeel" "N.pout" "Herring" "Dab" #> [6] "Whiting" "Sole" "Gurnard" "Plaice" "Schellfisch" #> [11] "Kabeljau" "Saithe"
# }