grapes-equals-grapes: Test for equality with NA, NaN

Description Usage Arguments Value Examples

Description

Like x == y, but not returning NA in tests involving NaN or NA.

Usage

1
x %==% y

Arguments

x, y

Values to test

Value

A logical vector with the test results.

Examples

1
2
3
4
5
6
x <- c(1, NA)
y <- c(1, NA)

x <- c(0, 1, NA, NaN, NA, NaN)
y <- c(0, 0, NA, NaN, 0, 0)
x %==% y

jrnold/rubbish documentation built on May 20, 2019, 2:05 a.m.