taxa (version 0.1.0)

format_taxon_subset: Format taxon subset value

Description

Format an input to a subset option on functions like supertaxa(). Converts logical and taxon_ids into indexes of taxon_data.

Usage

format_taxon_subset(taxon_ids, index)

Arguments

taxon_ids

All of the taxon ids from a taxmap object.

index

If a character, then it should be values of taxon_ids. If a numeric, then it should be row indexes of taxon_data. If a logical, then it should correspond to rows of taxon_data.

Value

(integer) row indexes of the edge list in a taxmap object named by corresponding taxon ids