Skip to content

Commit

Permalink
Fixed issue with own predict data
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipMostert committed Aug 8, 2024
1 parent f526acf commit 3a21e75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/modSpecies_predict.R
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ predict.modSpecies <- function(object, data = NULL, formula = NULL, mesh = NULL,

}

if (!any(names(data) %in% object$spatCovs$name)) {
if (!any(names(data) %in% c(object$spatCovs$name, paste0(unique(unlist(object$species$speciesIn)), '_', object$spatCovs$name)))) {

for (spatCov in object$spatCovs$name) {

Expand Down

0 comments on commit 3a21e75

Please sign in to comment.