Description Usage Arguments Value See Also Examples
This works like diag
except when x
is a single
integer value. If x
is a single integer value then it
assumes that you want a 1 by 1 matrix with the value set to x
1 |
x |
a matrix, vector or 1D array, or missing. |
nrow, ncol |
optional dimensions for the result when |
matrix with diagonal elements set to x
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.