Row-wise matrix creation
Create matrices laying out the data in rows, similar to
matrix(..., byrow = TRUE)
, with a nicer-to-read syntax.
This is useful for small matrices, e.g. covariance matrices, where readability
is important. The syntax is inspired by tribble()
.
frame_matrix(...)
... |
< |
A matrix.
See quasiquotation for more details on tidy dots semantics,
i.e. exactly how the ...
argument is processed.
frame_matrix( ~col1, ~col2, 1, 3, 5, 2 )
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.