Unimplemented type list when trying to write.table

前端 未结 6 2135
说谎
说谎 2020-12-08 06:45

I have the following data.table (data.frame) called output:

> head(output)
        Id                                           Title IsProhibited
1 10000         


        
6条回答
  •  爱一瞬间的悲伤
    2020-12-08 07:12

    There is a new function (introduced in november 2016) in data.table package that handles writing a data.table object to csv quite well, even in those cases when a column of the data.table is a list.

    fwrite(data.table, file ="myDT.csv")
    

提交回复
热议问题