Skip to content

Commit

Permalink
bug fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
Hughes authored and Hughes committed Sep 5, 2024
1 parent 56504fd commit 269c202
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/internal_demog_fns.R
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,10 @@ simSurvivalData <- function(freqStartsByYear, exData, collarNumYears, collarOffT
} else if (nrow(addBit) > 0) {
simSurvObs <- merge(simSurvObs, addBit)
}


if(nrow(simSurvObs)==0){
simSurvObs = data.frame(id=1,Year=freqStartsByYear$Year,event=NA,enter=NA,exit=NA)
}
return(simSurvObs)
}

Expand Down

0 comments on commit 269c202

Please sign in to comment.