Skip to content

In is.na<-, value can be any index #947

Description

@danhalligan

is.na<-.vctrs_vct asserts value argument is a logical.

#' @export

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
            }
        }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions