Skip to content

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

@arunsrinivasan

Description

@arunsrinivasan

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions