Skip to content

Commit

Permalink
Update biomod2_internal.R
Browse files Browse the repository at this point in the history
  • Loading branch information
HeleneBlt committed Jul 22, 2024
1 parent a31edbf commit dc11db2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/biomod2_internal.R
Original file line number Diff line number Diff line change
Expand Up @@ -564,9 +564,9 @@ get_var_range <- function(data)
sub(pattern = paste0(".*?_",sp.name),
replacement = "",
x = out.names)
out.binary <- grepl(pattern = "bin/.",
out.binary <- grepl(pattern = "bin\\.",
x = out.names)
out.filt <- grepl(pattern = "filt/.",
out.filt <- grepl(pattern = "filt\\.",
x = out.names)
out.type <- ifelse(out.binary,
"bin",
Expand All @@ -587,7 +587,6 @@ get_var_range <- function(data)
return( sub(paste0(out.type[i],".*"), "", begin.cut) )
}
})

data.frame("link" = out.names,
"type" = out.type,
"metric" = out.metric)
Expand Down

0 comments on commit dc11db2

Please sign in to comment.