Learn R Programming

Claddis (version 0.3.4)

SafeTaxonomicReduction: Safe Taxonomic Reduction

Description

Performs Safe Taxonomic Reduction (STR) on a character-taxon matrix.

Usage

SafeTaxonomicReduction(CladisticMatrix)

Arguments

CladisticMatrix

A character-taxon matrix in the format imported by ReadMorphNexus.

Value

str.list

A matrix listing the taxa that can be removed (Junior), the taxa which they are equivalent to (Senior) and the rule under which they can be safely removed (Rule).

reduced.matrix

A character-taxon matrix excluding the taxa that can be safely removed.

removed.matrix

A character-taxon matrix of the taxa that can be safely removed.

Details

Performs Safe Taxonomic Reduction (Wilkinson 1995).

If no taxa can be safely removed will print the text "No taxa can be safely removed", and the str.list and removed.matrix will have no rows.

NB: If your data contains inapplicable characters these will be treated as missing data, but this is inappropriate. Thus the user is advised to double check that any removed taxa make sense in the light of inapplicable states. (As far as I am aware this same behaviour occurs in the TAXEQ3 software.)

References

Wilkinson, M., 1995. Coping with abundant missing entries in phylogenetic inference using parsimony. Systematic Biology, 44, 501-514.

Examples

Run this code
# NOT RUN {
# Performs STR on the Gauthier 1986 dataset used in Wilkinson (1995):
str.out <- SafeTaxonomicReduction(Gauthier1986)

# View deleted taxa:
str.out$str.list

# View reduced matrix:
str.out$reduced.matrix

# View removed matrix:
str.out$removed.matrix

# }

Run the code above in your browser using DataLab