update_mass_props {massProps} | R Documentation |
Update mass properties
Description
update_mass_props()
updates mass properties for a specified target row from
specified source rows in a data frame.
Usage
update_mass_props(df, target, sources, override = set_poi_conv_from_target)
Arguments
df |
A data frame with (at least) these columns: |
target |
The |
sources |
List of |
override |
An override function, called as override(df, target, value). The default override sets the POI sign convention
of a computed aggregate to the |
Value
The updated data frame.
Examples
leaves <- names(igraph::neighbors(test_tree, "A.3", mode = "in"))
update_mass_props(test_table, "A.3", leaves)
[Package massProps version 0.3.3 Index]