Skip to contents

This function combines species, food, and environment data to calculate input variables for model. This includes food mass ingested, dry matter influx, and water balance components.

Usage

Input_Function(species = 0, food = 0, environment = 0)

Arguments

species

Data frame containing species physiological parameters. Must include: EnergyExp, TotalH2OTurnover, WVinLungs

food

Data frame containing food composition data. Must include: Digestibility, EEE, food macronutrient contents and energies, elemental compositions (O and H ratios), and freeH20food

environment

Data frame containing environmental conditions

Value

Data frame with all input combinations and calculated physiological variables:

  • FoodMassIngested - Mass of food consumed

  • dryOinflux - Dry oxygen influx from food

  • dryHinflux - Dry hydrogen influx from food

  • FreeH2Oinfood - Free water content in food

  • WaterinFood - Water vapor from food (half of free water)

  • DrinkingH2OIngested - Additional water intake required

  • DrinkingWater - Drinking water vapor (half of ingested)

Examples

if (FALSE) { # \dontrun{
# Create example data
species_data <- data.frame(
  EnergyExp = 5000,
  TotalH2OTurnover = 1000,
  WVinLungs = 50
)

food_data <- data.frame(
  Digestibility = 0.85,
  EEE = 0.95,
  foodcarbcontent = 0.6, foodcarbenergy = 17,
  foodproteincontent = 0.25, foodproteinenergy = 23,
  foodfatcontent = 0.05, foodfatenergy = 39,
  Ocarb = 1.33, Oprotein = 1.41, Ofat = 2.9,
  Hcarb = 1.51, Hprotein = 1.29, Hfat = 1.94,
  freeH20food = 0.75
)

environment_data <- data.frame(
  Temperature = 25,
  Humidity = 60
)

result <- Input_Function(
  species = species_data,
  food = food_data,
  environment = environment_data
)
} # }