| set_mass_props | R Documentation |
set_mass_props() sets mass properties for a specified row in a data frame.
set_mass_props(df, id, mp)
df |
A data frame with an |
id |
The |
mp |
A list with the following named elements:
|
The updated data frame with columns id, mass, Cx,
Cy, Cz, Ixx, Iyy, Izz, Ixy, Ixz, Iyz, POIconv, Ipoint.
df <- data.frame(id = c("C.1.2.2.3.1.2.3", "C.1.2.2.3.2.1.1"))
mp <- get_mass_props(mp_table, "C.1.2.2.3.2.1.1")
mp$poi_conv = "+"
set_mass_props(df, "C.1.2.2.3.2.1.1", mp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.