calc_intensity_litre: Calculate carbon footprint intensity per kg of milk

View source: R/calc_intensity_litre.R

calc_intensity_litreR Documentation

Calculate carbon footprint intensity per kg of milk

Description

Computes emissions intensity as kg CO2eq per kg of fat- and protein-corrected milk (FPCM).

Usage

calc_intensity_litre(
  total_emissions,
  milk_litres,
  fat = 4,
  protein = 3.3,
  milk_density = 1.03
)

Arguments

total_emissions

Numeric or cf_total object. Total emissions in kg CO2eq (from calc_total_emissions()) or the object itself.

milk_litres

Numeric. Annual milk production in litres.

fat

Numeric. Average fat percentage of milk (0-100). Default = 4.

protein

Numeric. Average protein percentage of milk (0-100). Default = 3.3.

milk_density

Numeric. Milk density in kg/L. Default = 1.03.

Details

The correction to FPCM (fat- and protein-corrected milk) follows the IDF formula:

FPCM = milk_kg * (0.1226 * fat_pct + 0.0776 * protein_pct + 0.2534)

Where milk_kg = milk_litres * milk_density

Value

A list of class "cf_intensity" with intensity (kg CO2eq/kg FPCM), FPCM production, and calculation details.

Examples


# Using numeric total emissions directly
calc_intensity_litre(total_emissions = 85000, milk_litres = 750000)

# If you have a cf_total object 'tot' (e.g., from calc_total_emissions):
# calc_intensity_litre(tot, milk_litres = 750000)


cowfootR documentation built on Jan. 13, 2026, 5:07 p.m.