Learn R Programming

nandb (version 0.2.1)

ListPillars: Turn a 3d array into a list of pillars

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

ListPillars(arr3d)

Arguments

arr3d

A 3-dimensional array.

Value

A list.

See Also

PillarsListToArr

Examples

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

# }

Run the code above in your browser using DataLab