.make_diag {PortfolioOptim} | R Documentation |
Makes a diagonal matrix with values from x
Description
Function make_diag() takes a vector x and returns a matrix with diagonal consists the values of x.
Usage
.make_diag(x)
Arguments
x |
vector |
Value
diagonal matrix y
[Package PortfolioOptim version 1.1.1 Index]