equal | R Documentation |
It performs a comparison by checking if either abs(x - y) < tol
when outer == FALSE
,
or if an a
exists or a y[j]
for each x[i]
such that the condition abs(x[i] - y[j]) < tol
is satisfied.
equal(x, y, tol = 1e-06, outer = FALSE)
approx_equal(x, y, tol = 1e-06, outer = FALSE)
x |
numeric |
y |
numeric |
tol |
numeric: tolerance (default: |
outer |
logical: compares directly or verifies whether |
logical
equal(9*1/9, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.