unmask_mat {fMRItools}R 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.


[Package fMRItools version 0.4.7 Index]