Is there a function that reports the amount of memory used by a dataset and/or vector? If I have a dataset with only 1 column, does it use more memory then the same data arranged as a vector?
Prof Brian Ripley
2006-May-04 19:10 UTC
[R] Determining the "memory" used by a dataset or vector?
On Thu, 4 May 2006, r user wrote:> Is there a function that reports the amount of memory > used by a dataset and/or vector??object.size> If I have a dataset with only 1 column, does it use > more memory then the same data arranged as a vector?Yes. (I presume you mean a *data frame* here.) -- 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
Doran, Harold
2006-May-04 19:11 UTC
[R] Determining the "memory" used by a dataset or vector?
You can use object.size()> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of r user > Sent: Thursday, May 04, 2006 2:56 PM > To: rhelp > Subject: [R] Determining the "memory" used by a dataset or vector? > > > Is there a function that reports the amount of memory used by > a dataset and/or vector? > > If I have a dataset with only 1 column, does it use more > memory then the same data arranged as a vector? > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html >