Skip to content

Commit

Permalink
cge
Browse files Browse the repository at this point in the history
  • Loading branch information
gdauby committed Nov 2, 2023
1 parent 6038603 commit 9a7de4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/locations.comp.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ locations.comp <- function(XY,
warning('threat_list is NULL, hence notice that method_polygons is not used')
}

method_polygons <- match.arg(unique(method_polygons), c("no_more_than_one", "grid"), several.ok = TRUE)
# method_polygons <- match.arg(unique(method_polygons), c("no_more_than_one", "grid"), several.ok = TRUE)
method <- match.arg(method, c("fixed_grid", "sliding_scale"))

if (!is.null(threat_list)) {

if (length(method_polygons) > 1 | length(method_polygons) != length(threat_list))
if (length(method_polygons) > 1 & length(method_polygons) != length(threat_list))
stop('method_polygons and threat_list must be of same length')

if (length(method_polygons) == 1 & length(threat_list) > 1)
Expand Down

0 comments on commit 9a7de4e

Please sign in to comment.