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)

Arguments

M

square matrix

Value

N

transformed matrix

Examples

Run this code
# NOT RUN {
M = matrix(1:9,3)
N = tril(M)
# }

Run the code above in your browser using DataLab