Re: [R-sig-phylo] Recursive addition along a tree

2019-08-04 Thread Miguel Camacho
Hi Mario, I would recommend you working with R library “treeman” (https://github.com/DomBennett/treeman/wiki ). Nodes are stored in a list and it is easy working with them. For each node in the list you have the info of the precedent and posterior

Re: [R-sig-phylo] Recursive addition along a tree

2019-08-04 Thread Liam Revell
Dear Mario. From your drawing it looks like each node & tip has a value, and then you update these values by reassigning each node a value equal to the sum of its value and that of all its descendants. Is this correct? If so, then assuming you have ordered your quantities in x such that they