Skip to content

Commit

Permalink
fix excludeNaListwise (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
vandenman authored Oct 8, 2024
1 parent e57cdd1 commit 4e8b1a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/common.R
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ excludeNaListwise <- function(dataset, columns = NULL) {
if (is.null(columns))
return(dataset[stats::complete.cases(dataset), , drop = FALSE])

if (!character(columns))
if (!is.character(columns))
stop("excludeNaListwise: the `columns` argument must be a character vector.")

if (!all(columns %in% colnames(dataset)))
Expand Down

0 comments on commit 4e8b1a1

Please sign in to comment.