Learn R Programming

DistatisR (version 1.1.1)

rdiag: right (i.e., post) Multiply a matrix by a diagonal matrix

Description

rdiag: right (i.e., post) Multiply a matrix by a diagonal matrix (with only the diagonal elements being given).

Usage

rdiag(X, y)

Value

an \(I\) by \(J\) matrix equal to X

Arguments

X

an \(I\) by \(J\) matrix.

y

a \(J\) element vector (of the diagonal elements of a \(J\) by \(J\) matrix)

Author

Hervé Abdi

See Also

ldiag