r - Opposite of array_tree in purrr package? -


i wondering if there function opposite of array_tree function purrr package.

specifically function (lets call list_untree -better suggestions welcome) following. if a multidimensional array , m vector specifying margins array_tree.

l <- array_tree(a, margin=m) <- list_untree(l, margin=m) 

how can write efficiently if not exist.

for more motivation: particularly interested in doing computations on l using map function , plugging result list_untree function.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

Python Tornado package error when running server -