equal_including_na: Compare vectors, treating NA like a value

View source: R/na.R

equal_including_naR 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.


tidytidbits documentation built on March 18, 2022, 6:10 p.m.