are_all_elements_within_eps: Check if all elements of x are within tolerance eps of any...

View source: R/spatial_grids.R

are_all_elements_within_epsR 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.


SeaVal documentation built on June 24, 2024, 5:15 p.m.