Learn R Programming

fMRItools (version 0.7.2)

mat2UT: Matrix to Upper Triangular Vector

Description

Returns the vectorized upper triangle of a square matrix

Usage

mat2UT(x, diag = FALSE)

Value

The vectorized upper triangle of x.

Arguments

x

A square matrix

diag

Get the diagonal values too? Default: FALSE