Export a list into a CSV or TXT file in R

后端 未结 8 2022
遥遥无期
遥遥无期 2020-11-27 16:02

I\'m sorry to ask this question. I\'m very noob with R. I know there is a lot of threads which are related to the very same problem. I understood that we cannot export a tab

8条回答
  •  醉酒成梦
    2020-11-27 16:32

    You can write your For loop to individually store dataframes from a list:

    allocation = list()
    
    for(i in 1:length(allocation)){
        write.csv(data.frame(allocation[[i]]), file = paste0(path, names(allocation)[i], '.csv'))
    }
    

提交回复
热议问题