omxCheckSetEquals: Set Equality Testing Function

Description Usage Arguments Details References See Also Examples

View source: R/MxUnitTesting.R

Description

This function tests whether two vectors contain the same elements.

Usage

1

Arguments

...

arguments forwarded to expect_setequal

Details

Performs the ‘setequal’ function on the two arguments. If the two arguments do not contain the same elements, then an error will be thrown.

References

The OpenMx User's guide can be found at http://openmx.ssri.psu.edu/documentation.

See Also

omxCheckCloseEnough, omxCheckWithinPercentError, omxCheckIdentical, omxCheckTrue, omxCheckEquals

Examples

1
2
3
4
5
6
omxCheckSetEquals(c(1, 1, 2, 2, 3), c(3, 2, 1))

omxCheckSetEquals(matrix(1, 1, 1), matrix(1, 3, 3))

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

OpenMx/OpenMx documentation built on April 8, 2020, 4:35 a.m.