umx (version 1.9.1)

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 Utility Functions: umx_find_object, umx_msg, umx_names, umx_paste_names, umx_pb_note, umx_print, umx_rename, 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