Learn R Programming

umx (version 4.9.0)

qm: qm

Description

Quickmatrix function

Usage

qm(..., rowMarker = "|")

Arguments

...

the components of your matrix

rowMarker

mark the end of each row

Value

- matrix

References

http://www.sumsar.net/blog/2014/03/a-hack-to-create-matrices-in-R-matlab-style/

See Also

Other Miscellaneous Utility Functions: install.OpenMx(), libs(), umxLav2RAM(), umxModelNames(), umxRAM2Lav(), umxVersion(), umx_array_shift(), umx_find_object(), umx_lower.tri(), umx_msg(), umx_open_CRAN_page(), umx_pad(), umx_print(), umx

Examples

Run this code
# NOT RUN {
# simple example
qm(0, 1 |
   2, NA)
# }
# NOT RUN {
# clever example
M1 = M2 = diag(2)
qm(M1,c(4,5) | c(1,2),M2 | t(1:3))
# }

Run the code above in your browser using DataLab