array2mat: Reshape array to matrix with specified row dimension

Description Usage Arguments Value See Also

View source: R/array_transform.R

Description

array2mat reshapes an array to a matrix

Usage

1
array2mat(dat, row_dim, return_attributes = TRUE, keep_dimnames = TRUE)

Arguments

dat

an array to reshape

row_dim

name or index of dimension which should be the row dimension of the returned matrix

return_attributes

logical value; if TRUE (default), the attributes of the array is saved as an additional attribute ("array_atributes") of the returned matrix including the row_dim parameter

keep_dimnames

logical value; if TRUE (default), the function not only reshapes the array but retains the dimension names separated by "|"

Value

A matrix

See Also

mat2array which is the inverse of array2mat


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