Changes the names of species in a MizerParams object. This involves for example changing the species dimension names of rate arrays appropriately.
Value
An object of type MizerParams
Examples
replace <- c(Cod = "Kabeljau", Haddock = "Schellfisch")
params <- renameSpecies(NS_params, replace)
#> ℹ No `a` column so using a = 0.01 in w = a l^b, with w in g and l in cm.
#> ℹ No `b` column so using the isometric default b = 3 in w = a l^b.
species_params(params)$species
#> [1] "Sprat" "Sandeel" "N.pout" "Herring" "Dab"
#> [6] "Whiting" "Sole" "Gurnard" "Plaice" "Schellfisch"
#> [11] "Kabeljau" "Saithe"
