Learn R Programming

nandb (version 0.2.1)

PillarsListToArr: Make a list of pillars back into a 3D array.

Description

#' Suppose the array is of dimension n1 * n2 * n3, then pillar [i, j, ] is list element i + n1 * (j - 1), so the first element is pillar [1, 1, ], the second is pillar [1, 2, ] and so on.

Usage

PillarsListToArr(pillars.list, dim)

Arguments

pillars.list

The list of pillars

dim

The desired dimension of the output array.

Value

A 3-dimensional array.

See Also

ListPillars

Examples

Run this code
# NOT RUN {
arr <- array(1:27, dim = rep(3, 3))
print(arr)
ListPillars(arr)
PillarsListToArr(ListPillars(arr), dim(arr))

# }

Run the code above in your browser using DataLab