Skip to content

Commit

Permalink
fix error message for values outside of range in checkMWRfrecom
Browse files Browse the repository at this point in the history
  • Loading branch information
fawda123 committed Nov 7, 2023
1 parent 0c4cd69 commit 2bcdf0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/checkMWRfrecom.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ checkMWRfrecom <- function(frecomdat, warn = TRUE){
unlist
if(any(chk, na.rm = T)){
tochk <- names(chk)[chk]
stop(msg, '\n\tValues less than 0 or greater than 100 found in columns: ', paste(tochk, collapse = ', ', call. = FALSE))
stop(msg, '\n\tValues less than 0 or greater than 100 found in columns: ', paste(tochk, collapse = ', '), call. = FALSE)
}
message(paste(msg, 'OK'))

Expand Down

0 comments on commit 2bcdf0f

Please sign in to comment.