metan (version 1.2.1)

make_upper_tri: Make an upper triangular matrix

Description

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

Usage

make_upper_tri(x, diag = NA)

Arguments

x

A symmetric matrix

diag

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

Value

An upper 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