Description Usage Arguments Value Examples
This is a safe way of comparing if two vectors of floating point numbers are (pairwise) equal. This is safer than using '==“, because it has a built in tolerance. This function is based on 'dplyr::near()'.
1 |
x, y |
Numeric vectors to compare |
tol |
tolerance of comparison (optional) |
a logical array (same size as input arrays) with element-wise comparison of 'x' and 'y“
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.