1 | tree_fun_multi(el, values, tree_fun)
|
el |
[character data.frame] The edgelist specifying the tree structure. The first column are character names for the parents, the second are children. |
values |
[matrix] Tip values on which to aggregate. The column names must be the same names as in el. Each row corresponds to a different sample. |
tree_fun |
[function] The tree function to apply to each row of values. |
result [data.table] A data.table giving aggregated values for each of sample, along with the row index of the sample on which that aggregation was performed. The row index can be used for inputting sample / time / group information after the fact.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.