[R] Object size in bytes

Martin Maechler maechler at stat.math.ethz.ch
Wed Sep 6 12:48:07 CEST 2000


>>>>> "Duncan" == Duncan Murdoch <murdoch at stats.uwo.ca> writes:

    Duncan> On Sat, 2 Sep 2000 10:38:09 +0200 (MET DST),Kjetil Kjernsmo
    Duncan> <kjetil.kjernsmo at astro.uio.no> wrote in message
    Duncan> <Pine.OSF.4.05.10009021034320.15448-100000 at alnair.uio.no>:

    >> Dear all,
    >> 
    >> If I may request a feature, I would find it very useful to be able
    >> to obtain a the sizes of the objects along with object names with
    >> e.g. ls().

    Duncan> In S-PLUS, objects.summary() does this. (Size means number of
    Duncan> components, not size in bytes, so it's not very informative for
    Duncan> some structured objects, but it definitely does let you find
    Duncan> the big vectors of numbers.)  Kjetil's right, it's useful.

just the number of components...  should be "easy" (well..)
writing a function that recursively sums up length() of atomic components..

would that really be okay?

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list