lower_triangular: Lower Triangular

Description Usage Arguments See Also Examples

Description

Extracts the lower triangular part of a matrix

Usage

1

Arguments

x

a matrix

diag

whether the diagonal should be included

See Also

upper_triangular

Examples

1
2
3
4
5
6
7
m = matrix(1:20, 4, 4)

# lower triangular part (without diagonal)
lower_triangular(m)

# lower triangular part (including diagonal)
lower_triangular(m, diag = TRUE)

gastonstat/matrixkit documentation built on May 16, 2019, 5:45 p.m.