0

I have 5 data frames

 df1,df2,df3,rf1,rf2

I wrote a script that made a list off of specific df's

df_list <- names(do.call("list", mget(grep("df", ls(), value=T))))

df_list generated these dataframes

df_list<-c(df1,df2,df3)

what i would like to do is a for loop where i run through the specific dataframes from the list and write out a csv based on their names as df's into a directory i created.

directory<-"C://User//Project//"
user35131
  • 1,105
  • 6
  • 18

0 Answers0