umx_is_MxModel: umx_is_MxModel

umx_is_MxModelR Documentation

umx_is_MxModel

Description

Utility function returning a binary answer to the question "Is this an OpenMx model?"

Usage

umx_is_MxModel(obj, listOK = FALSE)

Arguments

obj

An object to be tested to see if it is an OpenMx mxModel()

listOK

Is it acceptable to pass in a list of models? (Default = FALSE)

Value

  • Boolean

References

See Also

Other Test: umx_check_OS(), umx_check_model(), umx_check_names(), umx_check_parallel(), umx_check(), umx_has_CIs(), umx_has_been_run(), umx_has_means(), umx_has_square_brackets(), umx_is_MxData(), umx_is_MxMatrix(), umx_is_RAM(), umx_is_cov()

Examples

m1 = mxModel("test")
if(umx_is_MxModel(m1)){
	message("nice OpenMx model!")
}
if(umx_is_MxModel(list(m1,m1), listOK = TRUE)){
	message("nice list of OpenMx models!")
}

umx documentation built on May 29, 2024, 5:40 a.m.