Created
October 8, 2012 11:36
-
-
Save carlosp420/3852049 to your computer and use it in GitHub Desktop.
R: sort a data.frame of taxon names according to tip labels of phylogeny
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tax <- read.csv("richness.csv"); # col.names => "exemplar", "n.tax", "taxon" | |
tax[match(phy$tip.label, tax$exemplar),] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment