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

Comments

Projects
None yet
2 participants
@arunsrinivasan
Member

arunsrinivasan commented Jun 8, 2014

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

This comment has been minimized.

Show comment
Hide comment
@tinyheero

tinyheero Oct 10, 2014

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,

tinyheero commented Oct 10, 2014

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

This comment has been minimized.

Show comment
Hide comment
@arunsrinivasan

arunsrinivasan Oct 10, 2014

Member

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

Member

arunsrinivasan commented Oct 10, 2014

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