Skip to content

Commit

Permalink
If speciesIntercepts NULL change to FALSE
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMostert committed Feb 20, 2024
1 parent 27c62ca commit 455c71d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/fitISDM.R
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ fitISDM <- function(data, options = list()) {

}

if (is.null(data$.__enclos_env__$private$speciesIntercepts)) data$.__enclos_env__$private$speciesIntercepts <- FALSE
if (data$.__enclos_env__$private$speciesIntercepts) row.names(inlaModel$summary.random[[paste0(data$.__enclos_env__$private$speciesName, '_intercepts')]]) <- data$.__enclos_env__$private$speciesTable[['species']]


Expand Down

0 comments on commit 455c71d

Please sign in to comment.