Learn R Programming

SeaVal (version 1.1.1)

are_all_elements_within_eps: 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)

Value

A boolean value, TRUE if all x are in y within tolerance eps, FALSE otherwise.

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.