[R] data usage

Thomas Lumley tlumley at u.washington.edu
Mon Mar 29 16:44:27 CEST 2004


On Mon, 29 Mar 2004, Edwin Leuven wrote:

> > What does the 665 MB represent?  Did you try doing a garbage
> > collection after you had done the import?
>
> i didn't (sorry, R beginner)
>
> i followed your example and things look much better now, and
> object.size(x) returns:
>
> 219,167,604
>
> which is about double the size of the same object in stata

Stata tends to store data as float, integer, or even byte where
appropriate for the precision.  This is one source of space saving. A
factor of 2 is not atypical.

	-thomas




More information about the R-help mailing list