[R] evaluating the contents of a string

Martin Maechler maechler at stat.math.ethz.ch
Fri Oct 5 09:43:01 CEST 2001


>>>>> "David" == David A Richmond <richmond at saintmarys.edu> writes:

    David> On Mon, 1 Oct 2001, Thomas Lumley wrote:
    >> In general, this sort of question is frequently a sign that someone is
    >> doing things the hard way.  There are some real situations where you need
    >> to operate on strings like this, but they are fairly rare.

    David> Well, actually I don't know if I'm reinventing the wheel here,
    David> but my objective was to write a function which lists the objects
    David> in memory with characteristic info, like data type, dimensions,
    David> and memory used. so I use ls(pos=1) to get the list of objects
    David> at the 'root' level, and then use get(i,pos=1) to get
    David> information about each object, then display it in a table. It
    David> works nicely with get, and I can make it available if anyone's
    David> interested. (I call it "describe" and it displays the name,
    David> type, dimensions and size of each object)

    <....>

you may also have a look at the function

    ls.str()

which does something similar.
Martin
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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