diff --git a/R/as_logical.R b/R/as_logical.R index 6ff6a17..8f1d990 100644 --- a/R/as_logical.R +++ b/R/as_logical.R @@ -93,6 +93,8 @@ as_logical.default <- function(x, any(.x %in% x) })) } + } else { + match_index <- c() } if (length(match_index) == 1) {