Learn R Programming

elliptic (version 0.4-13)

near.match: Are two vectors close to one another?

Description

Returns TRUE if each element of x and y are near one another

Usage

near.match(x, y, tol=NULL)

Arguments

x
First object
y
Second object
tol
Relative tolerance with default NULL meaning to use machine precision

Examples

Run this code
x <- rep(1,6)
near.match(x, x+rnorm(6)/1e10)

Run the code above in your browser using DataLab