You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}
}
The text was updated successfully, but these errors were encountered:
hadley
changed the title
vctrs is.na assignment erroneously asserts value is logical
In is.na<-, value can be any index
Mar 25, 2020
is.na<-.vctrs_vct
asserts 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:
The text was updated successfully, but these errors were encountered: