Skip to contents

herdr is an R package designed to calculate greenhouse gas (GHG) emissions and land use (LU) associated with livestock production. It offers a robust framework for environmental impact assessment based on animal physiology and diet composition.

Currently supported animals:

  • 🐂 Cattle
  • 🐐 Goat
  • 🐑 Sheep

📊 What the Package Calculates

The package models the primary sources of environmental impact from livestock based on a detailed Energy Balance model. It accounts for energy requirements for maintenance, growth, lactation, pregnancy, work, and wool production.

Methane (CH4CH_4) Emissions

  • Enteric fermentation: Emissions produced during the digestive process based on Gross Energy intake and diet digestibility (YmY_m).
  • Manure management: Emissions derived from Volatile Solids (VSVS) decay, adjusting for specific management systems (e.g., liquid lagoons, solid storage, pasture, composting).

Nitrous Oxide (N2ON_2O) Emissions

  • Direct: Emissions from manure storage and treatment systems.
  • Indirect: Emissions via nitrogen volatilization (NH3NH_3, NOxNO_x) and leaching into water systems.

Land Use

  • Calculates the land area (m2m^2) required to produce the feed based on economic allocation, linking animal intake directly to crop yields using FAOSTAT and BC3 databases.

Multi-Scenario Analysis

herdr allows you to model different farms, regions, or management strategies within the same project. You can compare results across different geographic scales or management intensities in a single run.


🎯 Calculation Methodology (IPCC 2019)

All emission calculations within herdr adhere to the Tier 2 methods established by the Intergovernmental Panel on Climate Change (IPCC).

Specifically, we follow the 2019 Refinement to the 2006 IPCC Guidelines for National Greenhouse Gas Inventories: > “Volume 4: Agriculture, Forestry and Other Land Use, Chapter 10: EMISSIONS FROM LIVESTOCK AND MANURE MANAGEMENT”


🥕 The Role of Diet & Validation

  • Diet-Driven: Diet composition is the primary driver of the results, determining key parameters like the Methane Conversion Factor (YmY_m) and Nitrogen Excretion (NexN_{ex}).
  • Automatic Validation: Before calculating, herdr automatically checks the consistency of input data, ensuring that biologically implausible values (e.g., impossible intake relative to weight) are flagged.

🚀 Getting Started

To begin using herdr, you need to install the package and initialize your workspace. We have prepared a comprehensive, step-by-step guide to help you set up your project, manage your data, and run your first assessment.

In the Workflow guide, you will find:

  • 📥 Installation: How to install the package and avoid common Windows errors.
  • 🛠️ Initialization: How to set up the folder structure with herdr_init().
  • 📂 Data Management: A detailed walkthrough of the input CSV files (Census, Nutrition, Manure).
  • 📊 Execution: How to run the final generate_impact_assessment().

👉 Go to the General Workflow Guide