diagonal {MultBiplotR}R Documentation

Diagonal matrix from a vector

Description

Creates a diagonal matrix from a vector

Usage

diagonal(d)

Arguments

d

A numerical vector

Value

A diagonal matrix wirh the values of vector in the diagonal a zeros elsewhere

Author(s)

Jose Luis Vicente Villardon

Examples

diag(c(1, 2, 3, 4, 5))

[Package MultBiplotR version 23.11.0 Index]