Reshaping data involves changing how your data is organised in whatever sort of container you are using to store it. For us, this container will almost always be a data.table Luckily, the data.table package in R provides efficient functions for reshaping.