are_all_elements_within_eps {SeaVal} | R Documentation |
Check if all elements of x are within tolerance eps of any element in y
Description
Auxiliary function, used for checking whether spatial grids are regular, with allowing for rounding errors.
Usage
are_all_elements_within_eps(x, y, eps)
Arguments
x |
A numeric vector, sorted in increasing order. |
y |
A numeric vector, sorted in increasing order. |
eps |
The tolerance within which we consider two values to be equal. |
Value
A boolean value, TRUE if all x are in y within tolerance eps, FALSE otherwise.
[Package SeaVal version 1.2.0 Index]