%+-% builds a tolerance interval: x %+-% y returns
c(x - y, x + y), which slots straight into the "between" operators in
comparisons. %/0% is a safe division that returns
NA instead of Inf/NaN when dividing by zero, so a stray
zero will not poison a downstream sum or mean.
Value
%+-% returns a length-2 numeric vector
c(lower, upper); %/0% returns x / y with any
divide-by-zero results replaced by NA.
Author
Ben Wiseman, benjamin.h.wiseman@gmail.com