Description Usage Arguments Value Examples
Create an identity matrix matching a vector
1 | diag_like(x)
|
x |
A vector |
An identity matrix with the same dimension as x.
1 | diag_like(1:2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.