powered by
Gather Multidimensional Array to Tidy Tibble
gather_array(a, value, ..., .id = NULL)
data.frame
multidimensional array
unquoted name of column with values (defaults to "var")
unquoted dimension names (defaults to "dim_1", "dim_2", etc...)
if specified, name for column created with name of a captured
spread_array
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