| allEqual {tractor.base} | R Documentation |
This function is a wrapper around all, testing whether all elements
of the specified vector are equal to each other.
allEqual(x, ignoreMissing = FALSE)
x |
A vector of any mode, including a list. |
ignoreMissing |
If |
TRUE if all elements test (exactly) equal; 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/.
equivalent for elementwise equivalence of two
vectors.
allEqual(c(1,1,1)) # TRUE allEqual(c(1,1,NA)) # FALSE allEqual(c(1,1,NA), ignoreMissing=TRUE) # TRUE