Skip to content

Commit

Permalink
additional check
Browse files Browse the repository at this point in the history
  • Loading branch information
joshyam-k committed Dec 13, 2023
1 parent 0c0a42c commit 11cba78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/modifiedGreg.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ modifiedGreg <- function(y,
stop("'y' must be the same length as 'domains'")
}

if (sum(is.na(y)) > 0) {
stop("'y' cannot contain any NA values")
}

if (is.null(N)) {
if (datatype == "raw") {
N <- nrow(xpop)
Expand Down

0 comments on commit 11cba78

Please sign in to comment.