replace_taxon_ids

0th

Percentile

Replace taxon ids

Replace taxon ids in a taxmap() or taxonomy() object.

obj$replace_taxon_ids(new_ids)
replace_taxon_ids(obj, new_ids)

Arguments
obj

The taxonomy() or taxmap() object.

new_ids

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().

Value

A taxonomy() or taxmap() object with new taxon ids

Aliases
  • replace_taxon_ids
Examples
# NOT RUN {
replace_taxon_ids(ex_taxmap, seq_len(length(ex_taxmap$taxa)))
# }
Documentation reproduced from package taxa, version 0.1.0, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.