Skip to contents

Compare values including NA

Usage

compareWithNA(v1, v2)

Arguments

v1

Value or a list of values to compare. May include NA.

v2

Value or a list of values to compare. May include NA.

Value

TRUE wherever elements are the same, including NA's,

Details

From http://www.cookbook-r.com/Manipulating_data/Comparing_vectors_or_factors_with_NA/