Learn R Programming

fido (version 1.0.4)

gather_array: Gather Multidimensional Array to Tidy Tibble

Description

Gather Multidimensional Array to Tidy Tibble

Usage

gather_array(a, value, ..., .id = NULL)

Value

data.frame

Arguments

a

multidimensional array

value

unquoted name of column with values (defaults to "var")

...

unquoted dimension names (defaults to "dim_1", "dim_2", etc...)

.id

if specified, name for column created with name of a captured

See Also

spread_array

Examples

Run this code
a <- array(1:100, dim =c(10, 5, 2))
gather_array(a, sequence, A, B, C)

Run the code above in your browser using DataLab