Change from using data.table to data frames.

Switched since seemed a little easier to follow due to using more
familiar packages and functions.