Skip to content

Instantly share code, notes, and snippets.

@carlosp420
Created October 8, 2012 11:36
Show Gist options
  • Save carlosp420/3852049 to your computer and use it in GitHub Desktop.
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
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