Calculate diet metabolizable energy contribution for a ration component
Source:R/core_model_ration_quality.R
calc_ration_metabolizable_energy.RdApplies species-specific metabolizable energy parameters to a ration composition share to compute the contribution of a single feed component to total diet metabolizable energy content.
Usage
calc_ration_metabolizable_energy(
species_short,
feed_ration_fraction,
feed_metabolizable_energy_ruminant = NA_real_,
feed_metabolizable_energy_pigs = NA_real_
)Arguments
- species_short
Character. Code identifying the livestock species. Supported values include:
PGS: pigsCML: camelsCTL: cattleBFL: buffaloSHP: sheepGTS: goats
- feed_ration_fraction
Numeric. Proportion of a specific feed component in the total ration, expressed as its fraction of diet dry matter intake (fraction). Within each herd_id and cohort, proportions should sum to 1.
- feed_metabolizable_energy_ruminant
Numeric. Metabolizable energy content of a feed component for ruminants, representing digestible energy minus energy losses in urine and gaseous products of digestion (MJ/kg DM).
- feed_metabolizable_energy_pigs
Numeric. Metabolizable energy content of a feed component for pigs, representing digestible energy minus energy losses in urine and gaseous products of digestion (MJ/kg DM).
Value
Numeric. Contribution of the feed component to total diet metabolizable energy content (MJ/kg DM).
Details
The metabolizable energy contribution uses the animal-specific parameter:
Ruminants (
CTL,BFL,CML,SHP,GTS):feed_ration_fraction * feed_metabolizable_energy_ruminantPigs (
PGS):feed_ration_fraction * feed_metabolizable_energy_pigs
This function is part of the run_ration_quality_module().