Learn R Programming

geiger (version 1.2-13)

name.check: Compares taxa in data and tree

Description

This function is a general tool for checking for concordance between a data file and a phylogenetic tree. For the data, names can be specified as the names of objects in the vector, rownames of the data array or as 'data.names'. The name.check function finds and lists all taxa present in data set but not in the tree, and vice-versa. The treedata function returns a list containing both the tree and the data after pruning out any species that are not found in both.

Usage

name.check(phy, data, data.names=NULL)

Arguments

phy
an object of class "phylo"
data
data for tips of the tree
data.names

Value

  • Tree.not.dataTaxa in tree but not data
  • Data.not.treeTaxa in data but not tree
  • ...

Examples

Run this code
data(geospiza)
attach(geospiza)

name.check(geospiza.tree, geospiza.data)

Run the code above in your browser using DataLab