unflatten-methods: Unflatten array

Description Usage Arguments Value

Description

Convert a flattened array back to an array.

Expand a flattened object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
unflatten(x, i, ...)

## S4 method for signature 'vector,matrix'
unflatten(x, i, default = na_type(x), dim = NULL)

## S4 method for signature 'vector,vector'
unflatten(x, i, ...)

## S4 method for signature 'FlattenedArray,missing'
unflatten(x, i)

Arguments

x

Object with the elements in the array

i

Indices of the objects. Not necessary if x is a FlattenedArray.

...

Not used.

default

Value used to fill any elements in the array not specified in x and i.

dim

Dimensions of the array

Value

Object of class FlattenedArray.

An array object


jrnold/flatter documentation built on May 20, 2019, 1:01 a.m.