View source: R/aux_functions.R
diagR | R Documentation |
Return a matrix with elements on a diagonal specified by offset
diagR(x, n, offset = 0)
x |
fill diagonal with this value |
n |
matrix size |
offset |
start position of diagonal, default: 0 = main diagonal |
A diagonal matrix with x
on its diagonal
(main or offset diagonal).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.