Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
It seems like, at the moment, bind_rows, when applied to a list, disregards name information. I've been doing things like this:
test = list(source_1 = data_frame(a = 1),
source_2 = data_frame(a = 1) )
mutate(name = names(test)[i]) ) %>%
It seems like a straightforward solution would be to have extra argument which specifies the name of a column to contain list name information.
The text was updated successfully, but these errors were encountered:
See also #825
Sorry, something went wrong.
A similar strategy might be used also be used for row names. Although list names might be more important because they often contain important information for joins etc.
Note also this was at one point a feature of rbindlist from data.table (idcol = TRUE)
Dplyr will always discard row names because I think they're a bad idea
Allow bind_rows() to create an identifier column
Successfully merging a pull request may close this issue.