listmatrix_to_array: Extract and Format List to 4D Array

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Converts from the list with length of R and entry dimensions J x K x S to an array with dimensions J x K x S x R.

Usage

1

Arguments

x

An list object with each element an array

Value

An array with dimensions J x K x S x R.

Examples

1
2
3
4
5
6
7
8
# Create a matrix
x = matrix(1:6, nrow = 2)

# Add matrices to a list
x_list = list(x, x + 1)

# Convert to array
x_array = listmatrix_to_array(x_list)

tmsalab/edmcore documentation built on Sept. 4, 2021, 2:46 a.m.