3
Suppose my Environment contains the following objects (fictitious names):
abcd # numeric
efgh # dataframe
ijkl # matrix
mnop # character
My goal: put them in a list automatically without having to write:
mylist<-list(abcd,efgh,ijkl,mnop)
Is there a function able to perform this? More precisely, it would be the opposite of the function list2env.
There is yes, see the function
ls().– Rui Barradas
I tried several actions (including with
ls), but only the names of the objects enter the list. I want the objects themselves to be in the list.– neves
So you must be looking for
get, when it is only one object, andmgetfor various objects.– Rui Barradas