Description Usage Arguments Value Author(s) References See Also Examples

This function is a wrapper for `isTRUE(all.equal(x,y,...{}))`

, but
with the additional capability of doing sign-insensitive comparison.

1 | ```
equivalent(x, y, signMatters = TRUE, ...)
``` |

`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 |

`TRUE`

if all elements of `x`

match all elements of
`y`

to within tolerance, ignoring signs if required. `FALSE`

otherwise.

Jon Clayden

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. http://www.jstatsoft.org/v44/i08/.

1 2 3 | ```
equivalent(c(-1,1), c(1,1)) # FALSE
equivalent(c(-1,1), c(1,1), signMatters=FALSE) # TRUE
equivalent(1:2, 2:3, tolerance=2) # TRUE
``` |

tractor.base documentation built on March 18, 2018, 2:20 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.