I have a list of data frames that I'am relying to maintain the same column name, but when I export the names are personalized based on their name
for example I have three tables
c("Table1",Table2","Table3")
Each table has the same columns
c("Col1","Col2","Col3","Col4")
When I open the file Table1 it has personalized columns such as
c("Table1.Col1","Table1.Col2","Table1.Col3","Table1.Col4")
I want all .csv to maintain their proper column name and not get modified based on their dataframe name.
I'm using
for(i in 1:length(df)){
write.csv(df[i], paste0(df,names(list)[i], ".csv"), row.names = FALSE,na="")
}