Description Usage Arguments Details Value Note Author(s) See Also Examples

Generate a diagonal matrix from a vector of the diagonal entries like.

1 |

`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

1 2 3 4 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.