flatten-methods: Flatten matrices, arrays, and vectors.

Description Usage Arguments Value

Description

Flatten matrices, arrays, and vectors.

Usage

1
2
3
4
5
6
7
flatten(x, ...)

## S4 method for signature 'array'
flatten(x, default = NA, drop_default = TRUE)

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

Arguments

x

Object to flatten; a vector, matrix, or array.

...

passed to next method.

default

Value of x which are the default value of the array.

drop_default

Drop indices which have the default value.

Value

Object of class FlattenedArray.


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