TRUE if condition positively fullfilled, FALSE if not met or if NA!

  • EQ equal

  • NE unequal

  • LT less than

  • LE less equal

  • GT greater than

  • GE greater equal

When x and/or y is a vector, comparison is component-wise. If x and y differ in length the shorter will be recycled.

EQ(x, y)

NE(x, y)

LT(x, y)

LE(x, y)

GT(x, y)

GE(x, y)

LT(x, y)

Arguments

x

ordinal

y

ordinal

Value

TRUE or FALSE

Examples

EQ(1,1)
#> [1] TRUE
EQ(1,NA)
#> [1] FALSE
EQ(2,c(1, 2, 3, NA))
#> [1] FALSE TRUE FALSE FALSE
EQ(c(2,4,3,1),c(1, 2, 3, NA))
#> [1] FALSE FALSE TRUE FALSE
EQ(1:2,c(1, 2, 1, NA))
#> [1] TRUE TRUE TRUE FALSE