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 #2657] Ricardo's ListTransform functions #576

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

[R-Forge #2657] Ricardo's ListTransform functions #576

arunsrinivasan opened this issue Jun 8, 2014 · 2 comments

Comments

@arunsrinivasan
Copy link
Member

Submitted by: Matt Dowle; Assigned to: Nobody; R-Forge link

Example here :
http://stackoverflow.com/questions/15753091/convert-mixed-length-named-list-to-data-frame

@MichaelChirico
Copy link
Member

MichaelChirico commented Apr 2, 2018

Actually this answer looks quite nice, just uses existing arguments to rbindlist:

https://stackoverflow.com/a/34647961/3576984

Given that, I guess the remaining utility is subsumed by #2146...

@jangorecki
Copy link
Member

agree with @MichaelChirico that rbindlist can handle that nicely

library(data.table)
list = list(list(a=1,b=3,c=5),list(c=2,a=3))
rbindlist(list,fill=TRUE)

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

3 participants