Hi all,
I seem to be having a difficult time using the 'ape' package in R
when it comes to rooting trees. Here's a short screenshot:
> nirK.tree
Phylogenetic tree with 23 tips and 21 internal nodes.
Tip labels:
Burkholder, Burkholde3, Burkholde1, Burkholde4, Burkholde5,
Ralstonia2, ...
Node labels:
, 100, 100, 100, 70, 91,...
Unooted; includes branch lengths.
> test<-root(nirk.tree, 4)
Error in root(nirk.tree, 4) : subscript out of bounds
> test<-root(nirk.tree, "Burkholde4")
Error in root(nirk.tree, "Burkholde4") : subscript out of bounds
>
I tried with the example tree provided in the package, and that
seemed to work ok. Any suggestions?
Many thanks,
Chris
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.