I have a list of data frames, which was produced from reading in 25 .csv files at once. I would like to unlist the data frames to begin a spatial analysis. That is, I woul
One way of doing it:
list2env(setNames(l,paste0("df",seq_along(l))), envir = parent.frame())
Though I would heed @baptiste 's advice before it is too late and avoid doing this.
Why? Because in two days time you'll find yourself trapped using get()
and paste
and messy loops to try to apply a function to all of your datasets at once. If you keep them in a list you can just do lapply(l,functionname)
.