is.na<-.vctrs_vct asserts value argument is a logical.
However, in base::R merge.data.frame it may be an index of values to set to NA. See (for example) this section of the merge.data.frame base R function:
if (all.x) {
zap <- (lxy + 1L):(lxy + nxx)
for (i in seq_along(y)) {
if (is.matrix(y[[1]]))
y[[1]][zap, ] <- NA
else is.na(y[[i]]) <- zap
}
}
is.na<-.vctrs_vctasserts value argument is a logical.vctrs/R/type-vctr.R
Line 640 in 69cff44
However, in base::R merge.data.frame it may be an index of values to set to NA. See (for example) this section of the merge.data.frame base R function: