Skip to contents

herdr is an R package designed to calculate Greenhouse Gas (GHG) emissions and Land Use (LU) associated with different livestock systems based on IPCC Tier 2 methodologies.


🚀 Quick Start (run in <1 min)

# Install
if (!requireNamespace("remotes", quietly = TRUE)) {
  install.packages("remotes")
}
remotes::install_github("JuanCBM99/herdr")

library(herdr)

# Initialize project
herdr_init()

# Load example data
file.copy(list.files("Examples/Level1_Spain_Dairy_Cattle_2015", full.names = TRUE), "user_data")

# Run model
results <- generate_impact_assessment()

This runs a complete example of a cattle production system and returns greenhouse gas emissions and land use results.


🎥 Video Tutorial


📚 Guides and Examples

Below are the main guides and examples for using the package:

1. Introduction

Learn what herdr does, which animals are supported, and how to install the package.

2. Technical reference

Explore the included files and some explanation about them.

3. Manure & Land use Guide

Explore the included manure management systems based on IPCC 2019 tables.

4. Workflow

Step-by-step guide on how to perform a general use of the package.

5. Examples

Simple guide that explains how to do a concrete example (3 included)