tree_fun_multi: Wrapper to compute tree aggregations over many samples

Usage Arguments Value

View source: R/prep_data.R

Usage

1

Arguments

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.

Value

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.


krisrs1128/treelapse documentation built on Jan. 3, 2020, 6:29 p.m.