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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -