5

I have created a series of list objects in my global environment that I can search for by string. For example ls(pattern = '^data_')

How can I combine this group of named lists into 1 list?

user42485
  • 751
  • 2
  • 9
  • 19

1 Answers1

3

With the output, we can use mget to return a list of the values from the string object/objects

lst1 <- mget(ls(pattern = '^data_'))
akrun
  • 874,273
  • 37
  • 540
  • 662