[R] object.size vs. workspace size
Prof Brian Ripley
ripley at stats.ox.ac.uk
Fri Mar 7 08:56:20 CET 2014
On 06/03/2014 23:26, Hui Du wrote:
> Hi All,
>
> I have 2 objects, A and B, where
>
> object.size(A) = 5M and object.size(B) = 80M.
>
> However, after I save those two objects as workspaces, say,
>
> save(A, file = "A.Rdata") and save(B, file = "B.Rdata")
>
> On disk, the size of 'A.Rdata' is 0.22 M but the size of 'B.Rdata' is 560M. Could someone tell me how come the workspace B.RData got increased so much and how to make it smaller?
Please read ?save: compression is on by default.
> Many thanks.
>
> HXD
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
PLEASE do: no HTML mail for a start.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list