validate_mass_props_table {massProps} | R Documentation |
Validate a mass properties table
Description
validate_mass_props_table()
checks that the names of vertices
in a tree and the id
values of a data frame are identical. It further
applies the checks of validate_mass_props()
to every row of the data
frame corresponding to a leaf vertex of the tree.
validate_mass_props_table()
ensures that the id
column of the table and the vertices
of the tree contain the same identifiers, and that the mass properties of every leaf element
of the table are valid.
Usage
validate_mass_props_table(tree, df)
Arguments
tree |
An 'igraph' tree whose vertices are named as the values of the |
df |
A data frame with (at least) these columns: |
Value
TRUE if valid, stops with an error otherwise
Examples
validate_mass_props_table(mp_tree_small, mp_table_small)
[Package massProps version 0.3.3 Index]