diagrs: Diagonalize the sums of each row of a matrix

View source: R/matrix_sum.R

diagrsR Documentation

Diagonalize the sums of each row of a matrix

Description

Diagonalizes the sums of each row of a matrix.

Usage

diagrs(df)

Arguments

df

A matrix with named rows and columns.

Value

A diagonal matrix with the sums of rows in the diagonal.

Examples

wio <- make_wio("wiodtest")
diagrs(wio$Y)

exvatools documentation built on Jan. 16, 2026, 5:19 p.m.