FuzzyMatch | R Documentation |
When assembling data from different sources typos can sometimes cause a loss of perfect matches between trees and datasets. This function helps you find these close matches that can be hand curated to keep as many species as possible in your analysis.
FuzzyMatch(tree, data, max.dist)
tree |
a phylogenetic tree of the class "phylo". |
data |
character vector with the names from your dataset. |
max.dist |
This is the maximum number of characters that can differ between your tree and data and still be recognized as a close match. |
A dataframe with the following rows:
Name in data
Name in tree
Number of differences
Heath Blackmon
http://coleoguy.github.io/
data(hym.tree)
names <- c("Pepsis_elegans", "Plagiolepis_alluaudi", "Pheidele_lucreti",
"Meliturgula_scriptifronsi", "Andrena_afimbriat")
FuzzyMatch(tree = hym.tree, data = names, max.dist=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.