betterGreater: Better Greater Than

Description Usage Arguments Value Note Examples

Description

Test two values to see if one is greater, where NA is equal to NA, and NA < -Inf

Usage

1

Arguments

x

A numeric vector of length 1 or 2

y

A numeric vector of length 1 (if /codex is atomic) or NULL

Value

TRUE if the the first value is greater (where any number is considered greater than NA), otherwise FALSE

Note

Instead of two arguments, this function will also accept a single vector of length 2 and compare the the two elements.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
betterGreater(5, 5)
betterGreater(105, -23.6)
betterGreater(9, NA)
betterGreater(5, 6)
betterGreater(NA, 7)
betterGreater(NA, NA)
betterGreater(-Inf, NA)
betterGreater(NA, -Inf)
betterGreater(15, -Inf)
betterGreater(-Inf, -45)
valuesToCheck = c(10, 13)
betterGreater(x = valuesToCheck)

debarros/dbTools documentation built on June 26, 2019, 2:43 p.m.