Learn R Programming

umx (version 1.4.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 Utility Functions: umx_find_object, umx_grep, umx_msg, umx_names, umx_paste_names, umx_pb_note, umx_print, umx_rename, umx

Examples

Run this code
# 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))
# ## End(Not run)

Run the code above in your browser using DataLab