These function provide different utilities to perform approximate matching of numbers.

1 |

`x` |
numeric scalar. Value to be approximatly matched. |

`y` |
numeric vector of values to be matched with |

`tol` |
numeric scalar giving the maximum difference in absolute value to perform a match. |

Proximity is calculated by the absolute value of the difference.

`closest`

returns a logical vector the same length as `y`

, `TRUE`

for the closest match(es) within `tol`

bounds and `FALSE`

otherwise.

Antoine Filipovic Pierucci

`match`

.

1 2 3 |

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

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