Learn R Programming

ISOpureR (version 1.0.18)

ISOpure.util.matlab_greater_than: Greater than operator

Description

Greater than function that matches Matlab behaviour when one of the arguments is NA (i.e. returns FALSE instead of NA)

Usage

ISOpure.util.matlab_greater_than(a, b)

Arguments

a
A numeric value (including Inf) or NA
b
A numeric value or NA

Value

Examples

Run this code
ISOpure.util.matlab_greater_than(5,3)
#[1] TRUE
ISOpure.util.matlab_greater_than(3,5)
#[1] FALSE
ISOpure.util.matlab_greater_than(5,NA)
#[1] FALSE
ISOpure.util.matlab_greater_than(NA,5)
#[1] FALSE
ISOpure.util.matlab_greater_than(5,Inf)
#[1] FALSE
ISOpure.util.matlab_greater_than(Inf,5)
#[1] TRUE

Run the code above in your browser using DataLab