Automatic dummy variable prep and bug fix
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')