rename_species | R Documentation |
Rename a species in a Strata object
rename_species(strata, old_name, new_name)
strata |
Strata object |
old_name |
character vector of names that are currently in the Strata object |
new_name |
character vector of names to replace the old_name vector |
Strata object with the same number of species
## Not run: data(saccharomyces) x <- rename_species(saccharomyces, "Saccharomyces_arboricola", "Sa") is_valid_strata(x) x <- rename_species(saccharomyces, c("Saccharomyces_arboricola", "Saccharomyces_cerevisiae"), c("Sa", "Sc")) is_valid_strata(x) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.