powered by
Changes the names of species in a MizerParams object. This involves for example changing the species dimension names of rate arrays appropriately.
renameSpecies(params, replace)
An object of type MizerParams
A mizer params object
A named character vector, with new names as values, and old names as names.
replace <- c(Cod = "Kabeljau", Haddock = "Schellfisch") params <- renameSpecies(NS_params, replace) species_params(params)$species
Run the code above in your browser using DataLab