Re: [R-sig-phylo] bind.tree() error

2011-03-09 Thread David Bapst
Klaus and Others- I tried reorder(), cladewise and pruningwise, and both methods produced a new error message when I tried bind.tree(). chosen_tree-bind.tree(ct2,clade,where=tip) Error in if (where == 0 || where == root) where - ROOTx : missing value where TRUE/FALSE needed -Dave On Tue, Mar

[R-sig-phylo] bind.tree() error

2011-03-08 Thread David Bapst
Hello all, Apologies for sending another post this week, but I've run into a strange error with bind.tree(), as below. I'm binding one tree (clade) to a tip (4, in this case) on another tree (chosen_tree). chosen_tree is a tree from an allTrees() output. bind.tree(chosen_tree,clade,where=tip)

Re: [R-sig-phylo] bind.tree() error

2011-03-08 Thread Klaus Schliep
Hi David, have you checked the ordering of the trees? allTrees returns trees in ''pruningwise ordering. Different functions assume different things how this should look like, but often don't say it explicitely. Things like reorder from ape or phangorn:::reorderPruning (a bit faster) are