validate_mass_props_and_unc_table: Validate a mass properties and uncertainties table

validate_mass_props_and_unc_tableR Documentation

Validate a mass properties and uncertainties table

Description

validate_mass_props_and_unc() calls validate_mass_props_table() and further applies the checks of validate_mass_props_and_unc() to every row of the data frame corresponding to a leaf vertex of the tree.

Usage

validate_mass_props_and_unc_table(tree, df)

Arguments

tree

An 'igraph' tree whose vertices are named as the values of the id column of df and whose directed edges point from child id to parent id.

df

A data frame with (at least) these columns: id, mass, Cx, Cy, Cz, Ixx, Iyy, Izz, Ixy, Ixz, Iyz, POIconv, Ipoint, sigma_mass, sigma_Cx, sigma_Cy, sigma_Cz, sigma_Ixx, sigma_Iyy, sigma_Izz, sigma_Ixy, sigma_Ixz, sigma_Iyz.

Value

TRUE if valid, stops with an error otherwise

Examples

validate_mass_props_and_unc_table(mp_tree_small, mp_table_small)

massProps documentation built on April 4, 2025, 1:45 a.m.