Description Usage Arguments Details Value See Also Examples
as_matrix()
coerces x
to a matrix.
1 |
x |
An object to coerce to a matrix. |
... |
Objects passed on to methods. |
1D arrays are coerced to 1 column matrices.
For a >2D object to be coercible to a matrix, all of the dimensions
except for the first two must be size 1. Meaning an array with dimensions
(3, 2, 1)
would be coercible to a (3, 2)
matrix, but one with (3, 1, 2)
would not be.
A matrix.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.