split_along_dim | R Documentation |
This is from a StackOverflow answer
split_along_dim(a, n)
a |
an array |
n |
along which dimension to create a list |
a list
Other utility functions:
make_list()
myarray <- array(c(1,2,3,4,5,6,7,8),c(2,2,2)) split_along_dim(myarray,1) split_along_dim(myarray,2) split_along_dim(myarray,3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.