get_mass_props_and_unc: Get mass properties and uncertainties for a row in a data...

View source: R/massprops.R

get_mass_props_and_uncR Documentation

Get mass properties and uncertainties for a row in a data frame

Description

get_mass_props_and_unc() is a convenience wrapper that combines the results of get_mass_props() and get_mass_props_unc().

Usage

get_mass_props_and_unc(df, id)

Arguments

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_Ixy, sigma_Ixz, sigma_Iyz.

id

The id value of the desired row.

Value

A list with the following named elements:

  • mass Numeric mass.

  • center_mass Numeric 3-vector center of mass.

  • point Logical indicating point mass. The inertia of point masses is excluded from calculations.

  • inertia Numeric 3x3 matrix inertia tensor. The signs of the off-diagonal elements of the inertia tensor are determined by POIconv. For example, the xy element of the inertia tensor is Ixy if POIconv is "-"; it is -Ixy if POIconv is "+".

  • sigma_mass Numeric mass uncertainty.

  • sigma_center_mass Numeric 3-vector center of mass uncertainties.

  • sigma_inertia Numeric 3x3 matrix inertia tensor uncertainties.

Examples

get_mass_props_and_unc(mp_table, "C.1.2.2.3.1.2.3")


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