Skip to content
New issue

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? Sign in to your account

[R-Forge #4965] Add 'names' argument to rbindlist #356

Closed
arunsrinivasan opened this issue Jun 8, 2014 · 2 comments
Closed

[R-Forge #4965] Add 'names' argument to rbindlist #356

arunsrinivasan opened this issue Jun 8, 2014 · 2 comments

Comments

@arunsrinivasan
Copy link
Member

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.

Thanks!

@tinyheero
Copy link

Hi,

Was this ever implemented into the rbindlist() function? I am using data.table (1.9.3) and would love to be able to use this functionality.

Thanks,

@arunsrinivasan
Copy link
Member Author

Not yet. This was closed because it's a duplicate of #591. And it'll most likely be implemented in 1.9.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants