biogas: Process Biogas Data and Predict Biogas Production

High- and low-level functions for processing biogas data and predicting biogas production. Molar mass and calculated oxygen demand (COD') can be determined from a chemical formula. Measured gas volume can be corrected for water vapor and to (possibly user-defined) standard temperature and pressure. Gas quantity can be converted between volume, mass, and moles. Gas composition, cumulative production, or other variables can be interpolated to a specified time. Cumulative biogas and methane production (and rates) can be calculated using volumetric, manometric, gravimetric, or gas density methods for any number of bottles. With cumulative methane production data and data on bottle contents, biochemical methane potential (BMP) can be calculated and summarized, including subtraction of the inoculum contribution and normalization by substrate mass. Cumulative production and production rates can be summarized in several different ways (e.g., omitting normalization) using the same function. Biogas quantity and composition can be predicted from substrate composition and additional, optional data. Lastly, inoculum and substrate mass can be determined for planning BMP experiments.

Version: 1.23.2
Suggests: knitr, ggplot2, testthat
Published: 2020-01-08
DOI: 10.32614/CRAN.package.biogas
Author: Sasha D. Hafner [aut, cre], Charlotte Rennuit [aut], Camilla Justesen [aut], Nanna Lojborg [aut], Jacob Mortensen [aut], Sergi Astals [ctb], Konrad Koch [ctb], Soeren Weinrich [ctb], Jin Mi Triolo [ctb], Ali Heidarzadeh Vazifehkhoran [ctb]
Maintainer: Sasha D. Hafner <sasha.hafner at>
License: GPL-2
NeedsCompilation: no
Materials: README NEWS ChangeLog
CRAN checks: biogas results


Reference manual: biogas.pdf
Vignettes: Getting started with the biogas package
Data processing for manometric BMP measurements
Data processing for volumetric BMP measurements
Predicting methane and biogas production


Package source: biogas_1.23.2.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): biogas_1.23.2.tgz, r-oldrel (arm64): biogas_1.23.2.tgz, r-release (x86_64): biogas_1.23.2.tgz, r-oldrel (x86_64): biogas_1.23.2.tgz
Old sources: biogas archive


Please use the canonical form to link to this page.