[Rd] save() size in XDR

Douglas Bates bates at stat.wisc.edu
Thu Feb 26 18:03:45 MET 2004


Nathan Whitehouse <nlwhitehouse at yahoo.com> writes:

>   Is there a way to find the size in bytes of a save()
> command --before-- the file has been saved?

You could try 

 object.size(obj)

which gives the size of the internal representation.  The external
representation should not be much larger.  If you use compress = TRUE
in the save call then the external representation may well be
considerably smaller than the internal.



More information about the R-devel mailing list