View source: R/05-body-composition.R
| calculate_body_composition | R Documentation |
Main function that calculates all body composition components and energy density from weight and processed parameters
calculate_body_composition(weight, processed_composition_params)
weight |
Total wet weight (g) |
processed_composition_params |
List with processed composition parameters |
A named list with 13 elements describing the body composition:
Numeric. Total wet weight (g), equal to weight.
Numeric. Water content (g).
Numeric. Protein content (g), estimated from water via Breck (2014) regression.
Numeric. Ash content (g), estimated from water via Breck (2014) regression.
Numeric. Fat content (g), calculated by subtraction and
bounded to [0, max_fat_fraction * weight].
Numeric. Water as a fraction of total weight.
Numeric. Protein as a fraction of total weight.
Numeric. Ash as a fraction of total weight.
Numeric. Fat as a fraction of total weight.
Numeric. Energy density (J/g wet weight).
Numeric. Total body energy (J).
Numeric. Sum of all four fractions; should be close to 1.
Logical. TRUE if total_fraction is within
0.05 of 1.
Returns create_empty_composition() when weight <= 0.
params <- list(water_fraction = 0.72, fat_energy = 36450,
protein_energy = 17990, max_fat_fraction = 0.30)
calculate_body_composition(weight = 100,
processed_composition_params = params)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.