Skip to content

Commit

Permalink
add unique check of indices, #100
Browse files Browse the repository at this point in the history
  • Loading branch information
rsbivand committed Sep 21, 2022
1 parent 757412c commit 36cdb1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/lisa_perm.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ parallel_setup <- function(iseed) {

spdep_splitIndices <- function(idx, lcl) {
n <- length(idx)
stopifnot(n == length(unique(idx)))
splits <- parallel::splitIndices(n, lcl)
res <- lapply(splits, function(i) idx[i])
res
Expand Down

0 comments on commit 36cdb1f

Please sign in to comment.