cor_mat: Un-vectorize correlation matrix

View source: R/plot_FC.R

cor_matR Documentation

Un-vectorize correlation matrix

Description

Converted a vectorized lower triangular correlation matrix back to its full matrix form.

Usage

cor_mat(
  x_diag,
  diag_val = NA,
  names = NULL,
  newOrder = NULL,
  lowerOnly = FALSE
)

Arguments

x_diag

The vectorized lower triangular correlation matrix.

diag_val

The value to put on the diagonals of the correlation matrix. Default: NA.

names

(Optional) row/column names.

newOrder

(Optional) new index order.

lowerOnly

Set the upper triangle to NA? Default: FALSE.

Value

A square correlation matrix


fMRItools documentation built on April 12, 2025, 1:32 a.m.