How to add each data frame created inside a loop to a separate sheet in excel?

前端 未结 0 1596
孤独总比滥情好
孤独总比滥情好 2020-12-12 02:12

for(x in unique_seg){

bf <- data.frame(matrix(x,nrow =3,ncol =3))

write.xlsx(bf,\'bf.xlsx\', sheetname =x, append=True) }

But I see only last loop is

相关标签:
回答
  • 消灭零回复
提交回复
热议问题