set_mass_props_unc: Set mass properties uncertainties for a row in a data frame

View source: R/massprops.R

set_mass_props_uncR Documentation

Set mass properties uncertainties for a row in a data frame

Description

set_mass_props_unc() sets mass properties uncertainties for a selected row in a data frame with an id column.

Usage

set_mass_props_unc(df, id, mpu)

Arguments

df

A data frame with an id column.

id

The id value of the desired row.

mpu

A list with the following named elements:

  • sigma_mass Numeric mass uncertainty.

  • sigma_center_mass Numeric 3-vector center of mass uncertainties.

  • sigma_inertia Numeric 3x3 matrix inertia tensor uncertainties.

Value

The updated data frame.

Examples

set_mass_props_unc(sawe_table, "Combined", get_mass_props_unc(sawe_table, "Widget"))


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