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//"
4

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.