Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uprbind/rbindlist don't combine integer64 columns correctly with other types #1349
Comments
eantonya
commented
Sep 21, 2015
|
|
|
The error message is meant for non-basic / derived (not sure how to call it) objects (i.e., date, posixct, etc.) |
|
So does this mean it throws an error if rbind'ing on columns of dates etc? I use them all the time, so is it best to convert to character before binding, then convert back? |
|
@kaybenleroll it means it will raise error when rbind'ing integer64 to other class (character, numeric, ...). I prefer to get an error and convert explicitly so anyone who reads my code is aware of that type conversion. |
|
This issue is still present in the developer version I am using. I am trying to rbindlist a list of data.tables. It turns out one of them had an integer64 column, while others, integer. The code did not produce an error or any alert, but the values in the column were largely messed up. There were tiny double values in place of integers. |