diagR: Return a matrix with elements on a diagonal specified by...

View source: R/aux_functions.R

diagRR Documentation

Return a matrix with elements on a diagonal specified by offset

Description

Return a matrix with elements on a diagonal specified by offset

Usage

diagR(x, n, offset = 0)

Arguments

x

fill diagonal with this value

n

matrix size

offset

start position of diagonal, default: 0 = main diagonal

Value

A diagonal matrix with x on its diagonal (main or offset diagonal).


manlius/muxViz documentation built on March 1, 2023, 10:28 a.m.