Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[R-Forge #4965] Add 'names' argument to rbindlist #356
Submitted by: Kevin Ushey; Assigned to: Nobody; R-Forge link
I have a suggestion for a feature: add a parameter 'names' that allows 'rbindlist' to keep the names of each element of a list 'x', and add it to a column in the final outputted data.table. This way, after 'rbindlist'ing a list of elements, we can still map rows in the output to the original list it was produced from.
I have an example implementation of what I mean up at https://github.com/kevinushey/data.table.extras/blob/master/R/rbindlistn.R ; I don't know if this is the best way to do it but it functions as a proof of concept for what I mean.