lower-triangular: Construct a lower triangular matrix from a vector

Description Usage Arguments Examples

Description

Construct a lower triangular matrix from a vector

Usage

1
2
3
4
lower_tri_matrix(data, nrow = 1, ncol = 1, diag = FALSE)

## S4 method for signature 'dual'
lower_tri_matrix(data, nrow = 1, ncol = 1, diag = FALSE)

Arguments

data

A numeric vector.

nrow

A positive integer; the desired number of rows.

ncol

A positive integer; the desired number of rows.

diag

A logical; should the diagonal be included ?

Examples

1
2
lower_tri_matrix(1:3, 3, 3)
lower_tri_matrix(1:6, 3, 3, diag = TRUE)

ADtools documentation built on Nov. 9, 2020, 5:09 p.m.