You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like, if it is possible, to add an argument to list_flatten() where you can set the number of times the function will flatten a list. Instead of piping the list_flatten()multiple times, you can add a depthor level argument for how many levels it should flatten the list.
Also it would be nice to be able to set how to flatten the list, i.e. which levels to flatten first. This could be done with a inner = TRUE for example.
Levels of flattening
I have a complicated list with many levels that I want to flatten to the next simplest level.
I would like, if it is possible, to add an argument to
list_flatten()
where you can set the number of times the function will flatten a list. Instead of piping thelist_flatten()
multiple times, you can add adepth
orlevel
argument for how many levels it should flatten the list.Also it would be nice to be able to set how to flatten the list, i.e. which levels to flatten first. This could be done with a
inner = TRUE
for example.Levels of flattening
I have a complicated list with many levels that I want to flatten to the next simplest level.
This is ok if it is only a couple of levels but instead of piping it would be neat to do:
Inner flattening
However this leaves the fruit and animals mixed in one list and the some animals left in another list.
I would like to be able to do:
The text was updated successfully, but these errors were encountered: