This function compares two vectors (or arrays) of values and returns the near-equality status of corresponding elements. As with `all.equal()`

, the intent is primarily to get around machine limits of representation of floating-point numbers. For integer comparison, just use the base `==`

operator.

1 |

`x,y` |
The two input items, typically vectors or arrays of data. |

`tolerance` |
Set the precision to which |

`...` |
Not used at this time. |

If `x`

and `y`

are of different lengths, the shorter one is recycled and a warning issued.

A vector of the same length as the longer of `x`

or `y`

, consisting of `TRUE`

and `FALSE`

elements, depending on whether the corresponding elements of `x`

and `y`

are within the approximate equality precision desired.

Carl Witthoft, carl@witthoft.com

`all.equal`

, `Comparison`

, `identical`

1 2 3 4 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.