Skip to content
Prev 363366 / 398502 Next

Accessing an object using a string

I'm surprised no one has given what I consider to be the standard
answer to this questions, namely ?get. Won't

  for (i in object_list) {
    print(paste0("Object '", i, "' in '", file_name, "' contains:"))
    str(get(i))
    print(names(get(i)))  # works
  }

do what you want?

Best,
Ista
On Tue, Aug 16, 2016 at 11:46 AM, Greg Snow <538280 at gmail.com> wrote: