Description Usage Arguments Details Value Note Author(s) Examples
Operator that is similar to ==, for comparing two numeric vectors.
1 | a %==% b
|
a |
numeric vector to be tested for equivalence. |
b |
numeric vector to be tested against a for equivalence. |
This operator works with the option insigbits, which should be an integer between 1 and 8. The option insigbits defines how many bits (from least significant) will be considered as insignificant in deciding upon equality.
TRUE if all but the insignificant parts are identical.
Default for insigbits is 6, it can be changed by using
options(insigbits = #),
where # is the desired value.
Aaron Hayman
1 2 3 4 5 | a = 90
b = 100*(0.95 - 0.05) # 90
a == b # FALSE
a - b # 1.421085e-14
a %==% b # TRUE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.