Insert empty rows or columns to a matrix. For example, medial wall vertices can be added back to the cortex data matrix.
unmask_mat(x, mask, mask_dim = 1, fill = NA)The unmasked matrix.
The data matrix to unmask.
The logical mask: the number of TRUE values should match
the size of the (mask_dim)th dimension in dat.
Rows, 1 (default), or columns, 2.
The fill value for the inserted rows/columns. Default: NA.