Command Reference : Function Reference : Function Reference: E
  
 
@eeqna
Element by element equality comparison of two data objects with NA handling.
Syntax: @eeqna(m1, m2)
m1: numeric or alphanumeric object
m2: numeric or alphanumeric object
Return: vector or matrix object
Returns the element by element test of equality between numeric or alphanumeric objects. NAs and missing strings are treated as ordinary values for purposes of comparison.
Each element of the returned matrix is equal to 1 or 0 depending on whether the corresponding element in m1 is equal to the corresponding element in m2.
Note m1 and m2 must be of identical dimensions.
Examples
Let X and Y be matrices. Then
= @eeqna(X, Y)
returns an binary matrix that indicates where X and Y match (on 0, 1, or NA).
Cross-references
See also @eisna, @ege, @egt, @ele, and @elt.
See also @eeq, @eneq, and @eneqna.