rollup_mass_props {massProps} | R Documentation |
Roll up mass properties
Description
'rollup_mass_props()' rolls up mass properties in a data frame such that the mass properties of each non-leaf vertex element is the aggregation of those of its child elements.
Usage
rollup_mass_props(tree, df, validate_df = validate_mass_props_table, ...)
Arguments
tree |
An 'igraph' tree whose vertices are named as the values of the |
df |
A data frame with (at least) these columns: |
validate_df |
A validator for the tree and table, default |
... |
Other parameters passed to |
Value
The updated data frame
Examples
rollup_mass_props(mp_tree_small, mp_table_small)
[Package massProps version 0.3.3 Index]