Learn R Programming

extRC (version 1.2)

tril: Lower triangular matrix

Description

Given a square matrix, it provides the lower triangular part, including the main diagonal.

Usage

tril(M)

Value

N

transformed matrix

Arguments

M

square matrix

Author

Francesco Bartolucci, Antonio Forcina

Examples

Run this code
M = matrix(1:9,3)
N = tril(M)

Run the code above in your browser using DataLab