gather_array | R Documentation |
Gather Multidimensional Array to Tidy Tibble
gather_array(a, value, ..., .id = NULL)
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 |
data.frame
spread_array
a <- array(1:100, dim =c(10, 5, 2))
gather_array(a, sequence, A, B, C)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.