equal_including_na {tidytidbits}R Documentation

Compare vectors, treating NA like a value

Description

Compare vectors, treating NA like a value

Usage

equal_including_na(v1, v2)

Arguments

v1, v2

Vectors of equal size

Value

Returns a logical vector of the same size as v1 and v2, TRUE wherever elements are the same. NA is treated like a value level, i.e., NA == NA is true, NA == 1 is false.


[Package tidytidbits version 0.3.2 Index]