Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


cwhmisc (version 2.1)

eql: Check on equality, including NA==NA and NaN==NaN.

Description

my.table checks two vectors on equality, two NA's and two NaN's compare as equal.

Usage

eql(x, y)

Arguments

x, y
vectors of equal length.

Value

  • A vector of logicals indicating the result of the element by element comparison.The elements of shorter vectors are recycled as necessary.

Examples

Run this code
eql(c(1,2,3),c(1,3)) #>  TRUE FALSE FALSE
  eql(c(1,2,3),c(1,2)) #>  TRUE  TRUE FALSE
  eql(c(NA,NaN,2,3),c(NA,NaN,1,2)) #>  TRUE  TRUE FALSE FALSE

Run the code above in your browser using DataLab