I would like to use the dplyr package (like the pipe operator: %>%
) when i bind rows from several lists.
Now the issue is that I need the list names also to be added to the column. With do.call(rbind, list)
this happens automatically, what is the dplyr equivalent?
I've tried list.object %>% rbind_all()
and list.object %>% bind_rows
which gives the same effect with no list names following.