mat2array: (Back-)Transforms a matrix to an array. See array2mat as a...

Description Usage Arguments See Also

View source: R/array_transform.R

Description

mat2array reshapes a matrix to an array. It is essentially the inverse function of array2mat.

Usage

1
mat2array(dat, dims = NULL, row_dim = NULL)

Arguments

dat

a matrix to reshape

dims

a numeric vector indicating the dimensions of the resulting array or a (potentially named) list indicating the dimnames attribute of the resulting array. If NULL (default), dat is assumed to be the result of a call to array2mat().

row_dim

name or index of dims which corresponds to the row dimension of dat. If NULL (default), dat is assumed to be the result of a call to array2mat().

See Also

array2mat


tdeenes/eegR documentation built on April 19, 2021, 4:17 p.m.