Skip to content

Commit

Permalink
Tiny switch in if || order
Browse files Browse the repository at this point in the history
  • Loading branch information
sashahafner committed Jan 6, 2023
1 parent 6a06c4c commit 287f071
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
@@ -1,7 +1,7 @@
Package: ALFAM2
Type: Package
Title: Model on Ammonia Emission from Field-Applied Manure
Version: 2.13.9
Version: 2.13.10
Date: 2023-01-05
Authors@R: c(person("Sasha D.", "Hafner", role = c("aut", "cre"), email = "sasha.hafner@bce.au.dk"),
person("Christoph", "Haeni", role = "aut"),
Expand Down
2 changes: 1 addition & 1 deletion R/alfam2.R
Expand Up @@ -248,7 +248,7 @@ alfam2 <- ALFAM2mod <- function(
ct.ind <- which(ct > incorp.time[i])[1]

# Add rows
if (ct.ind == 1 || incorp.time[i] != ct[ct.ind - 1]){
if (incorp.time[i] != ct[ct.ind - 1] || ct.ind == 1){

# Use predictor values from ct.ind row, insert row before first interval
ins.dat <- dat[dat$`__group` == i, ][ct.ind, ]
Expand Down

0 comments on commit 287f071

Please sign in to comment.