I have a dataset df
aa1 bb1 ccc
aa2 bb2 ccc
aa3 bb3 ddd
aa4 bb4 ddd
aa5 bb5 eee
I want to export as xlsx files each of them seperated filtered column
write.xlsx(df, 'files(ccc,ddd,eee,...).xlsx')
output of ccc.xlsx
aa1 bb1 ccc
aa2 bb2 ccc
output of ddd.xlsx
aa3 bb3 ddd
aa4 bb4 ddd
output of eee.xls
aa5 bb5 eee
Thanks