gsi.diagGenerate | R Documentation |
Generate a diagonal matrix from a vector of the diagonal entries like.
gsi.diagGenerate(x)
x |
a vector |
The difference to original diag
is that it always
gives a diagonal matrix and does nothing flawed in case of a length
one vector.
a diagonal matrix.
Do not use gsi.* functions directly since they are internal functions of the package
K.Gerald v.d. Boogaart http://www.stat.boogaart.de
gsi.diagExtract
, diag
diag(1:3)
#gsi.diagGenerate(1:3)
#gsi.diagGenerate(3)
diag(3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.