zeq: Possible Equality

%~=%R Documentation

Possible Equality

Description

Checks for the possibility that two values are equal. If there is any overlap in range, they are considered possibly equal and TRUE is returned, otherwise FALSE is returned.

Usage

e1 %~=% e2

Arguments

e1

any vector that can be converted to class "mcens."

e2

any vector that can be converted to class "mcens."

Details

Missing values are permitted in either e1 or e2. wherever either are missing the returned element is set to NA.

Value

A logical vector that matches the length of the longer of e1 or e2, set to TRUE is there is overlap in the values, and FALSE otherwise.

See Also

Compare,qw,numeric-method

Examples

as.mcens(1, 2) %~=% 0.5
as.mcens(1, 2) %~=% 1.5
as.mcens(1, 2) %~=% 2.5

USGS-R/smwrQW documentation built on Oct. 11, 2022, 6:13 a.m.