Replace taxon ids in a taxmap() or taxonomy() object.
taxmap()
taxonomy()
obj$replace_taxon_ids(new_ids) replace_taxon_ids(obj, new_ids)
The taxonomy() or taxmap() object.
A vector of new ids, one per taxon. They must be unique and in the same order as the corresponding ids in obj$taxon_ids().
obj$taxon_ids()
A taxonomy() or taxmap() object with new taxon ids
# NOT RUN { replace_taxon_ids(ex_taxmap, seq_len(length(ex_taxmap$taxa))) # }
Run the code above in your browser using DataLab