Adds dataset truncation method
Merge pull request #279 from lukecampbell/257

Adds dataset truncation method