rdiag | R Documentation |
rdiag
: right (i.e., post) Multiply
a matrix by a diagonal matrix (with only
the diagonal elements being given).
rdiag(X, y)
X |
an I by J matrix. |
y |
a J element vector (of the diagonal elements of a J by J matrix) |
an I by J matrix equal to X
Hervé Abdi
ldiag
## Not run: Z = rdiag(X,y) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.