2
I try to convert my list (which contains 12 dataframes and approx. 20,000 lines each) into separate dataframes:
list2env(mylist,envir=.GlobalEnv)
but, the following error message appears:
names(x) must be a character vector of the same length as x
What can be and what to do?
It seems that
mylist
does not have the attributenames
. Whatattributes(mylist)
gives? A solution may benames(mylist) <- paste("membro", seq_along(mylist), sep = ".")
.– Rui Barradas
It worked! Thank you for your attention.
– neves
It’s just that without names like R can create objects in
.GlobalEnv
or any other Nvironment? They are called what?– Rui Barradas