How can I compress an R dataset so that it automatically chooses the optimal data "type": byte, integer, long, float, etc? Something like "compress" command in Stata. Anupam.