Submitted by: Arun ; Assigned to: Arun ; R-Forge link
This allows users to switch back and forth as per their convenience, without the unnecessary copying.
The code is already available in as.data.frame.data.table. We just have to remove the copy(.) and write a new setDF. Will do.
For reference.