equivalent: Test two numeric vectors for equivalence
Description
This function is a wrapper for isTRUE(all.equal(x,y,...{})), but
with the additional capability of doing sign-insensitive comparison.
Usage
equivalent(x, y, signMatters = TRUE, ...)
Value
TRUE if all elements of x match all elements of
y to within tolerance, ignoring signs if required. FALSE
otherwise.
Arguments
x
The first numeric vector.
y
The second numeric vector.
signMatters
Logical value: if FALSE then equivalence in absolute
value is sufficient.
...
Additional arguments to all.equal, notably
tolerance.
Author
Jon Clayden
References
Please cite the following reference when using TractoR in your
work:
J.D. Clayden, S. Muñoz Maniega, A.J. Storkey, M.D. King, M.E. Bastin & C.A.
Clark (2011). TractoR: Magnetic resonance imaging and tractography with R.
Journal of Statistical Software 44(8):1-18.
https://www.jstatsoft.org/v44/i08/.