I would like to write a loop to create multiple data frames from a set of already existsing matrices.
I’ve imported and created these using the code:
temp<-list.files(pattern="*.csv")
ddives <- lapply(temp, read.csv)
so ‘ddives’ is my set of set of csv files. I now want to create a data frame out of each of these using a looped version of the code:
d.dives1<- data.frame(ddives[1])
As this is a follow up to the earlier question you posted, try this: