Hello there,
I have a pretty large dataset (about 200GB) and I need to use a mix of dplyr
and data.table
functions. Of course, with a data this size, I cannot allow the data to be duplicated in memory when I convert from data.table
to tibble
.
For instance, the SO post here (https://stackoverflow.com/questions/52431288/r-data-table-how-to-go-from-tibble-to-data-table-to-tibble-back) suggests to simply use :
setattr(x, "class", c("tbl", "tbl_df", "data.frame"))
which seems super hacky to me (but maybe it isn't). Any ideas/suggestions how to proceed?
Thanks!