gather_array: Gather Multidimensional Array to Tidy Tibble

View source: R/driver-utils.R

gather_arrayR Documentation

Gather Multidimensional Array to Tidy Tibble

Description

Gather Multidimensional Array to Tidy Tibble

Usage

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

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

Value

data.frame

See Also

spread_array

Examples

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

fido documentation built on June 22, 2024, 9:36 a.m.