merge_edge_values: Merge edges and values into one data.table

Description Usage Arguments Value

View source: R/prep_data.R

Description

Merge edges and values into one data.table

Usage

1
merge_edge_values(edges, values)

Arguments

edges

[matrix, data.frame, or data.table] Two columns of characters giving parents and children for each edge in the tree.

values

[data.frame or data.table] An object mapping unique units / times / groups to their values. It must have a column "unit" giving the node id, and optionally accepts columns "time" or "group" for timeboxes or DOI sankeys.

Value

merged_values [data.table] A data.table mapping each edge to the value for the associated child node.


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