TysonStanley / tidyfast

Fast and efficient alternatives to tidyr functions built on data.table #rdatatable #rstats
https://tysonbarrett.com/tidyfast/
187 stars 4 forks source link

Unnest with data.table 1.13.0 #32

Closed TysonStanley closed 4 years ago

TysonStanley commented 4 years ago

Closes #31

This update speeds up dt_unnest() and makes it generally more predictable. It can also now work with list-column of vectors, although that isn't what it is designed to do. It also keeps all variables, including other list columns.

Thanks to @vincentarelbundock and @kendonB for filling the issue!

TysonStanley commented 4 years ago

Importantly, this now requires data.table v1.13.0 to work (as there was a small bug in the previous version of data.table that won't allow this approach to consistently work.