set_poi_conv_from_target | R Documentation |
set_poi_conv_from_target()
sets the products of inertia sign convention for a
mass properties list to that of a target item in a mass properties table. This convention
determines how products of inertia are saved to the data frame.
The signature of set_poi_conv_from_target()
is such that it can be passed as an override
argument
to update_mass_props()
and update_mass_props_and_unc()
, thus ensuring
that all calculated POI values follow the negative integral convention of the target item to which they are written.
set_poi_conv_from_target(df, target, mp)
df |
A data frame with columns |
target |
The |
mp |
A mass properties list. |
The mass properties list with the named element poi_conv
set to the
POIconv
column of the target row in the data frame.
set_poi_conv_from_target(mp_table, "C.1.2.2.3.2.1", get_mass_props(mp_table, "C.1.2.2.3.2.1.1"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.