dist.taxo {ape}R Documentation

Pairwise Distances from a Taxonomic Level

Description

This function computes the pairwise distances between the pairs of data in an alpha numeric vector. This vector contains taxonomic data, either as a full description (for instance 'animal' and 'vegetal') or as a code (for instance '0' and '1'). This function is useful for drawing correlograms.

Usage

  dist.taxo(x)

Arguments

x a vector describing a taxonomic level

Details

The matrix mij will be:

  1. 0 if i=j;
  2. 0 if i!=j and x[i]!=x[j];
  3. 1 if i!=j and x[i]==x[j].

Value

a square matrix of size length(x).

Author(s)

Julien Dutheil julien.dutheil@univ-montp2.fr

See Also

Moran.I for example of use


[Package ape version 1.7 Index]