Diagonal: 'Diagonal'

View source: R/utilities.R

DiagonalR Documentation

Diagonal

Description

Extract or replace the diagonal of a matrix, or construct a diagonal matri.

Usage

Diagonal(x, off = FALSE)

Arguments

x

A matrix or a number indicating the number of rows in a square matrix.

off

logical. Operates on the off diagonal if selected.


Displayr/flipStartup documentation built on May 2, 2024, 6:24 p.m.