Skip to content

Commit

Permalink
group_tt indexing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Feb 3, 2024
1 parent cc8c6cf commit 39b15b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/group_tt.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ sanitize_group_index <- function(idx, hi, orientation) {
assert_integerish(idx[[n]], lower = 1, upper = hi, name = n)
}
}
browser()
if (anyDuplicated(unlist(idx)) > 0) stop("Duplicate group indices.", call. = FALSE)
out <- lapply(idx, function(x) min(x):max(x))
return(out)
Expand Down

0 comments on commit 39b15b3

Please sign in to comment.