Rdocumentation
powered by
Learn R Programming
matrixdist (version 1.1.2)
diagonal_vector: Creates a matrix with the given vector in the diagonal
Description
Creates a matrix with the given vector in the diagonal
Usage
diagonal_vector(vec)
Arguments
vec
a vector