Megan Bartlett
2012-Jan-11 19:48 UTC
[R] Getting a "root edge" error when trying to read the phylocom megatree into R
Hi, I'm trying to use the picante package in R to build phylogenetic trees, based on a list of taxa I have data for and the phylocom APG3 megatree (version R20091110; http://www.phylodiversity.net/phylomatic/). However, trying to read the tree in R using: read.tree("R20091110.new.txt") Gives the error message: Error in if (sum(obj[[i]]$edge[, 1] == ROOT) == 1 && dim(obj[[i]]$edge)[1]> :missing value where TRUE/FALSE needed This seems like such a basic question, but I don't know what the problem with the root edge is. Are there any modifications you have to make to the megatree in order to read it in R? Thanks so much for your help! Best, Megan Bartlett [[alternative HTML version deleted]]