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

2019-08-06 Thread Mario
Dear Liam, dear Emmanuel, thank you so much for your answers! This helped me a lot. Liam's script does exactly what I wanted to do. Thanks to both of you, I feel confident that I will be able to implement this in my research projects. All the best! Mario Am 05.08.19 um 11:31 schrieb

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

2019-08-05 Thread Emmanuel Paradis
Hi Mario, In the class "phylo", nodes and tips are numbered sequentially so it is no problem to have data associated with both. This is done in many functions in ape and in phangorn. I think the solution to your headaches is in this document (§ 4.4):

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

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

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

2019-08-03 Thread Mario Schädel
Dear people on this list, I am a German PhD student in the field of arthropod palaeontology. I want to develop a new approach for comparing abundance data in a phylogenetic context. Unlike following the standard techniques of community ecology, I want to include the abundance data not only for