unmask_mat: Unmask matrix data

View source: R/utils_mat.R

unmask_matR Documentation

Unmask matrix data

Description

Insert empty rows or columns to a matrix. For example, medial wall vertices can be added back to the cortex data matrix.

Usage

unmask_mat(x, mask, mask_dim = 1, fill = NA)

Arguments

x

The data matrix to unmask.

mask

The logical mask: the number of TRUE values should match the size of the (mask_dim)th dimension in dat.

mask_dim

Rows, 1 (default), or columns, 2.

fill

The fill value for the inserted rows/columns. Default: NA.

Value

The unmasked matrix.


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