metacoder (version 0.1.3)

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(obj, index)

Arguments

obj

(taxmap) The taxmap object containing taxon information to be queried.

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

numeric