metan (version 1.2.1)

make_lower_tri: Make a lower triangular matrix

Description

This function help users to easily make a lower triangular matrix using a symmetric matrix.

Usage

make_lower_tri(x, diag = NA)

Arguments

x

A symmetric matrix

diag

What show in the diagonal of the matrix. Default to NA.

Value

A lower triangular matrix

Examples

Run this code
# NOT RUN {
library(metan)
m <- cor(data_ge2[,5:10])
make_upper_tri(m)

# }

Run the code above in your browser using DataLab