Learn R Programming

nandb (version 0.2.1)

PillarsDF: Make each pillar of a 3D array into a column of a tibble

Description

Create a data frame (tibble) where pillar [i, j, ] is column i + n1 * (j - 1) with column name "i_j" (we use an underscore here rather than a comma because a comma is the delimiter in csv files so writing this data frame to a csv could cause confusion).

Usage

PillarsDF(arr3d)

Arguments

arr3d

A 3-dimensional array.

Value

A tibble.

Examples

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

# }

Run the code above in your browser using DataLab