omxCheckIdentical {OpenMx}R Documentation

Exact Equality Testing Function


This function tests whether two objects are equal.


omxCheckIdentical(a, b)


a The first value to compare.
b The second value to compare.


Performs the ‘identical’ comparison on the two arguments. If the two arguments are not equal, then an error will be thrown. If ‘a’ and ‘b’ are equal to each other, by default the function will print a statement informing the user the test has passed. To turn off these print statements use options("mxPrintUnitTests" = FALSE).


The OpenMx User's guide can be found at

See Also

omxCheckCloseEnough, omxCheckWithinPercentError, omxCheckSetEquals, omxCheckTrue


omxCheckIdentical(c(1, 2, 3), c(1, 2, 3))

omxCheckIdentical(FALSE, FALSE)

# Throws an error
try(omxCheckIdentical(c(1, 2, 3), c(2, 1, 3)))

[Package OpenMx version 0.2.9-1147 Index]