dist_taxa
computes toxonomic distance between species
Contents
Syntax
[TD species] = dist_taxa (taxon)
Description
Computes a normalized cumulative taxonomic distance between subsequent pairs in an ordered list of all species that belong to a taxon. The distances equal the number of nodes that the clade for that pair carries. The node-count excludes the leaves.
Input
- taxon: character string with name of taxon
Output
- TD: n-vector with distances, with TD(1) = 0 and TD(end) = 1.
- species: n-vector with cells with names of members of taxon
Example of use
[TD fish] = dist_taxa('Actinopterygii');