Skip to content
Compare
Choose a tag to compare

The model function can be called with alfam2() instead of the original ALFAM2mod() now (although the original name is still an alias, and so still works as before). This version also includes some new checks to input arguments and associated warning messages, that should make use easier.

You can install this release directly within R with

devtools::install_github('sashahafner/ALFAM2@v2.0')

To update (if you already have ALFAM2 installed), remove the older version first with this

remove.packages('ALFAM2')
Compare
Choose a tag to compare

This release addresses a bug present in v1.5.0 and earlier versions related to the use of the parallel argument.

You can install this release directly within R with

devtools::install_github('sashahafner/ALFAM2@v1.5.1')
Compare
Choose a tag to compare

Version 1.5.0 introduces a prep argument for automatic processing of dummy variables. By default it is FALSE, so the addition is backwards-compatible. When prep = TRUE ALFAM2mod() will create dummy variables for application method, incorporation, and manure source, significantly simplifying external data prep. See the updated vignette for more details.

A bug related to incorporation is also fixed in this release. It would have caused problems only when incorporation variables were FALSE or 0 but incorporation time was still specified as a numeric value.

You can install this release directly within R with

devtools::install_github('sashahafner/ALFAM2@v1.5.0')
Compare
Choose a tag to compare

This release has a new default parameter set, which was calculated as part of a project on new emission factors for Denmark. (See the report here: https://pure.au.dk/portal/files/223538048/EFreport23092021.pdf). Other changes address bugs and provide more useful messages.

  • Parameters: Parameter sets are now provided in stand-alone objects ALFAM2pars01 and ALFAM2pars02. The default is 02. New (vertical) message informs user about which parameters were used, and which were excluded.
  • Incorporation of manure into soil after application: Fixed strange behavior when input had typos, and added message for clarity.
  • Vignette: Fixed errors and added details. Thanks to Johanna Maria Pedersen and Anders Peter S. Adamsen for reviewing.