Skip to content
Prev 238591 / 398500 Next

is get() really what I want here?

Hi Daniel,

get() will work for any object, but cat() may not.  cat() should work
for arrays, but it will be messy even for relatively small ones.  For
example, run:
cat("Hello", array(1:100, dim = c(10, 10)), sep = " ")

What are you really trying to do?  If you are just trying to figure
out what random variables in your workspace you've assigned but do not
know/forgot what they are, consider:

ls.str(pattern="^obj")

as a better way to get their names and some useful summaries
(including class and number of observations).

HTH,

Josh

On Tue, Oct 19, 2010 at 10:29 PM, Daniel Weitzenfeld
<dweitzenfeld at gmail.com> wrote: